fop - How to change the font style for embedded MathML in the output PDF? -


i new apache fop , need change default font style times font in pdf output fop

my fop.xconf :

    <fop version="1.0">      <renderers>        <renderer mime="application/pdf">             <fonts>                  <font embed-url="file:///c:/windows/fonts/times new roman/times.ttf" name="times new roman">                     <font-triplet name="times new roman" style="roman" weight="normal"/>                 </font>                  <font embed-url="file:///c:/windows/fonts/times new roman/timesbd.ttf" name="times new roman">                     <font-triplet name="times new roman" style="normal" weight="bold"/>                 </font>                  <font embed-url="file:///c:/windows/fonts/times new roman/timesi.ttf" name="times new roman">                     <font-triplet name="times new roman" style="italic" weight="normal"/>                 </font>                  <font embed-url="file:///c:/windows/fonts/times new roman/timesbi.ttf" name="times new roman">                     <font-triplet name="times new roman" style="italic" weight="bold"/>                 </font>              </fonts>        </renderer>     </renderers>     </fop> 

my fo file test:

<?xml version="1.0" encoding="iso-8859-1"?>  <fo:root xmlns:fo="http://www.w3.org/1999/xsl/format" xmlns="http://www.w3.org/1998/math/mathml">     <fo:layout-master-set>         <fo:simple-page-master master-name="my-page">             <fo:region-body margin="1in"/>         </fo:simple-page-master>     </fo:layout-master-set>     <fo:page-sequence master-reference="my-page">         <fo:flow flow-name="xsl-region-body">             <fo:wrapper>             <fo:block font-family="times new roman">                 <fo:instream-foreign-object>                     <math xmlns="http://www.w3.org/1998/math/mathml" display="inline">                         <msub>                             <mi>σ</mi>                             <mrow>                                 <mi>z</mi>                             </mrow>                         </msub>                         <mo>=</mo>                         <munder>                             <mrow>                                 <munder>                                     <mrow>                                         <mi mathvariant="normal">l</mi>                                         <mi mathvariant="normal">i</mi>                                         <mi mathvariant="normal">m</mi>                                     </mrow>                                     <mrow/>                                 </munder>                             </mrow>                             <mrow>                                 <mo>Δ</mo>                                 <mi>a</mi>                                 <mo rspace="0.25pt" lspace="0.25pt">→</mo>                                 <mn>0</mn>                             </mrow>                         </munder>                         <mspace width="0.33em"/>                         <mfrac>                             <mrow>                                 <mo>Δ</mo>                                 <msub>                                     <mi>f</mi>                                     <mrow>                                         <mi>z</mi>                                     </mrow>                                 </msub>                             </mrow>                             <mrow>                                 <mo>Δ</mo>                                 <mi>a</mi>                             </mrow>                         </mfrac>                     </math>                 </fo:instream-foreign-object>             </fo:block>             </fo:wrapper>         </fo:flow>     </fo:page-sequence> </fo:root> 

so these files using pdf out in times new roman font, fonts not changing in output.pdf

kindly suggest way accomplish this

the code running in command line : fop -fo test.fo -c fop.xconf -pdf 1233.pdf


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -