Modifying base-font in Apache FOP PDf transform
Posted: Mon Aug 25, 2014 11:39 pm
A few years back I made the following note to myself in the DITA-OT file commons.attr.xsl, as a reminder about how I had changed the PDF output base font to sans-serif:
(I added the line containing "sans-serif")
This file used to be in the demo folder, so now I understand that it's at this location instead:
However now when I add the line with sans-serif to the file in that new location, it doesn't seem to change anything.
I remember that I was using XEP back then also, and now I'm using Apache FOP (since XEP doesn't seem to be included in this Oxygen installation that I'm using), is that the difference?
I tried adding the above to ....cfg\fo\attrs\custom.xsl also, but no change that way either.
Anyone know how to do this or why my previous method doesn't work? It did work back then, that I remember.
Thanks,
Code: Select all
<!-- added font-family attribute to change the base font to sans serif -->
<xsl:attribute-set name="base-font">
<xsl:attribute name="font-size"><xsl:value-of select="$default-font-size"/></xsl:attribute><xsl:attribute name="font-family">sans-serif</xsl:attribute>
</xsl:attribute-set>
This file used to be in the demo folder, so now I understand that it's at this location instead:
Code: Select all
C:\Developer\SVN\trunk\DITA-OT\plugins\org.dita.pdf2\cfg\fo\attrs\commons.attr.xsl
I remember that I was using XEP back then also, and now I'm using Apache FOP (since XEP doesn't seem to be included in this Oxygen installation that I'm using), is that the difference?
I tried adding the above to ....cfg\fo\attrs\custom.xsl also, but no change that way either.
Anyone know how to do this or why my previous method doesn't work? It did work back then, that I remember.
Thanks,