I use an embedded font in an apache fop 1.0 environment:
<fo:block-container
right="10mm" position="absolute">
<fo:block font-family="hnlt57con" >
my text
</fo:block>
</fo:block-container>
The configfile looks like this:
<fop version="1.0">
<renderers>
<renderer mime="application/pdf">
<fonts>
<font kerning="no" embed-url="Y:/test/helvetica-neue-lt-std-57-condensed.ttf" embedding-mode="subset">
<font-triplet name="hnlt57con" style="normal" weight="normal" />
</font>
</fonts>
</renderer>
</renderers>
This works fine, the text is rendered in the font hnlt57con.
What i want do now is render some text in bold:
<fo:block-container
right="10mm" position="absolute">
<fo:block font-family="hnlt57conbold" font-weight="bold" >
my text
</fo:block>
</fo:block-container>
The configfile looks like this:
<fop version="1.0">
<renderers>
<renderer mime="application/pdf">
<fonts>
<font kerning="no" embed-url="Y:/test/helvetica-neue-lt-std-57-condensed.ttf" embedding-mode="subset">
<font-triplet name="hnlt57con" style="normal" weight="normal" />
</font>
<font kerning="no" embed-url="Y:/test/helvetica-neue-lt-std-57-condensed.ttf" embedding-mode="subset">
<font-triplet name="hnlt57conbold" style="normal" weight="bold" />
</font>
</fonts>
</renderer>
</renderers>
Unfortunately a the text is not renderes in bold, but in the same way as in the example above.
Adding an additional font-triplet (as sugessted in http://www.scriptorium.com/whitepapers/fop_fonts/FOP_fonts5.html) does not change anything:
<fop version="1.0">
<renderers>
<renderer mime="application/pdf">
<fonts>
<font kerning="no" embed-url="Y:/test/helvetica-neue-lt-std-57-condensed.ttf" embedding-mode="subset">
<font-triplet name="hnlt57con" style="normal" weight="normal" />
</font>
<font kerning="no" embed-url="Y:/test/helvetica-neue-lt-std-57-condensed.ttf" embedding-mode="subset">
<font-triplet name="hnlt57conbold" style="normal" weight="bold" />
<font-triplet name="hnlt57conbold" style="normal" weight="700" />
</font>
</fonts>
</renderer>
</renderers>
The helvetica-neue-lt-std-57-condensed.ttf is a font that i converted myself from helvetica-neue-lt-std-57-condensed.otf using fontforge.
My questions:
How can i render some text in bold in an embedded font?
Is it possible, that the font is not usable in bold, since it is converted from an otf? In MS-Word however i can use it in bold.
Am i missing something?