title: apache fop embedded font bold
body: <p>I use an embedded font in an apache fop 1.0 environment:</p>
  
  <pre><code>&lt;fo:block-container  
    right="10mm" position="absolute"&gt;
    &lt;fo:block font-family="hnlt57con" &gt;
      my text
    &lt;/fo:block&gt;
  &lt;/fo:block-container&gt;
  </code></pre>
  
  <p>The configfile looks like this:</p>
  
  <pre><code>&lt;fop version="1.0"&gt;
    &lt;renderers&gt;
     &lt;renderer mime="application/pdf"&gt;
     &lt;fonts&gt;
         &lt;font kerning="no" embed-url="Y:/test/helvetica-neue-lt-std-57-condensed.ttf" embedding-mode="subset"&gt;
             &lt;font-triplet name="hnlt57con" style="normal" weight="normal" /&gt;
         &lt;/font&gt;         
     &lt;/fonts&gt;
     &lt;/renderer&gt;
  &lt;/renderers&gt;
  </code></pre>
  
  <p>This works fine, the text is rendered in the font hnlt57con.</p>
  
  <p>What i want do now is render some text in bold:</p>
  
  <pre><code>&lt;fo:block-container  
    right="10mm" position="absolute"&gt;
    &lt;fo:block font-family="hnlt57conbold" font-weight="bold"  &gt;
      my text
    &lt;/fo:block&gt;
  &lt;/fo:block-container&gt;
  </code></pre>
  
  <p>The configfile looks like this:  </p>
  
  <pre><code>&lt;fop version="1.0"&gt;
    &lt;renderers&gt;
     &lt;renderer mime="application/pdf"&gt;
     &lt;fonts&gt;
         &lt;font kerning="no" embed-url="Y:/test/helvetica-neue-lt-std-57-condensed.ttf" embedding-mode="subset"&gt;
             &lt;font-triplet name="hnlt57con" style="normal" weight="normal" /&gt;
         &lt;/font&gt;
         &lt;font kerning="no" embed-url="Y:/test/helvetica-neue-lt-std-57-condensed.ttf" embedding-mode="subset"&gt;
             &lt;font-triplet name="hnlt57conbold" style="normal" weight="bold" /&gt;                 
         &lt;/font&gt;       
     &lt;/fonts&gt;
     &lt;/renderer&gt;
  &lt;/renderers&gt;
  </code></pre>
  
  <p>Unfortunately a the text is not renderes in bold, but in the same way as in the example above.</p>
  
  <p>Adding an additional font-triplet (as sugessted in <a href="http://www.scriptorium.com/whitepapers/fop_fonts/FOP_fonts5.html" rel="nofollow">http://www.scriptorium.com/whitepapers/fop_fonts/FOP_fonts5.html</a>) does not change anything:</p>
  
  <pre><code>&lt;fop version="1.0"&gt;
    &lt;renderers&gt;
     &lt;renderer mime="application/pdf"&gt;
     &lt;fonts&gt;
         &lt;font kerning="no" embed-url="Y:/test/helvetica-neue-lt-std-57-condensed.ttf" embedding-mode="subset"&gt;
             &lt;font-triplet name="hnlt57con" style="normal" weight="normal" /&gt;
         &lt;/font&gt;
         &lt;font kerning="no" embed-url="Y:/test/helvetica-neue-lt-std-57-condensed.ttf" embedding-mode="subset"&gt;
             &lt;font-triplet name="hnlt57conbold" style="normal" weight="bold" /&gt;
             &lt;font-triplet name="hnlt57conbold" style="normal" weight="700" /&gt;
         &lt;/font&gt;            
     &lt;/fonts&gt;
     &lt;/renderer&gt;
  &lt;/renderers&gt;
  </code></pre>
  
  <p>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.</p>
  
  <p>My questions:</p>
  
  <p>How can i render some text in bold in an embedded font? </p>
  
  <p>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.</p>
  
  <p>Am i missing something?</p>