Hello James,

Yes, you can use Arial font in fo.ftl need to use file "framework/webapp/config/fop.xconf" , this file contain following code that responsible for font family, change font family according to the requirement:

       <font metrics-url="arial.xml" kerning="yes" embed-url="arial.ttf">
         <font-triplet name="Arial" style="normal" weight="normal"/>
         <font-triplet name="ArialMT" style="normal" weight="normal"/>
       </font>


Thanks
Brajesh Patel




James McGill wrote:
This is a question on using Barcode4J and XSL-FO in OFBiz.

Is it possible to use the "Arial" font in fo.ftl, and if so, how?
Before I try to convince my client that Helvetica is the same font as Arial
(which it isn't),
I want to be sure about what is possible.  Is it just a matter of making
fonts visible to the
Java runtime somehow?


This does not work:

                <fo:block text-align="center" font-family="Arial"
font-size="10pt" font-weight="bold">
                        ${mytexthere}
                </fo:block>


Likewise in my Barcode4J stanza, I have this, which does work -- but I'm not
sure whether it's substituting.

                    <barcode:barcode xmlns:barcode="
http://barcode4j.krysalis.org/ns"; message="${inventoryItemId}">
                        <barcode:code128>
                            <barcode:height>20mm</barcode:height>

<barcode:module-width>0.375mm</barcode:module-width>
                            <barcode:human-readable>

<barcode:placement>bottom</barcode:placement>
                                      <font-name>Arial</font-name>
                                       <font-size>10pt</font-size>

<display-start-stop>false</display-start-stop>

<display-checksum>false</display-checksum>
                               </barcode:human-readable>
                        </barcode:code128>
                    </barcode:barcode>




Reply via email to