Hi Varadharajan,

 

    You create the userconfig.xml file. And the add the following code in your program…

 

 

      String str_userconfig = "userconfig.xml";

      File fl_userconfig = new File(str_userconfig);

      ConfigurationReader reader = new ConfigurationReader(new InputSource(new FileInputStream(fl_userconfig)));

reader.start();

 

      you just include this code before initiating the driver. i.e. before the following code.

      Driver driver = new Driver();

 

      And look at the  userconfig file attached.

 

Regards,

Chandrasekhar Sanku.

 

 

-----Original Message-----
From: Varadharajan Sethuraman [mailto:[EMAIL PROTECTED]
Sent:
Wednesday, July 14, 2004 9:14 AM
To: FOP-USER; [EMAIL PROTECTED]
Subject: linking the font (not embeded font) with pdf

 

Hi All,

 

I have a problem with linking the font (not embeded font) with pdf.

In the userconfig.xml file I have specified only metric-file attribute. I haven't specified

embed-file attribute value.

 

Following highlighted paragraph from taken from http://xml.apache.org/fop/fonts.html

It says that particular font file should be there in the local system. Yes, Its there. But eventhough it is not working...

The "kerning" and "embed-file" attributes are optional. Kerning is currently not used at all. If embedding is off, the output will position the text correctly (from the metrics file), but it will not be displayed or printed correctly unless the viewer has the applicable font available to their local system.

If any one knows about Linking font with pdf using FOP.

Kindly help me....

 

Regards

Varadharajan S


Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!

Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments.
<configuration>
<entry>
<key>baseDir</key>
<value></value>
</entry>

<entry>
<key>fontBaseDir</key>
<value>C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts</value>
</entry>

<fonts>


<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/ARIAL.xml" kerning="yes" embed-file="C:/WINNT/Fonts/ARIAL.TTF">
<font-triplet name="Arial" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/ARIALBD.xml" kerning="yes" embed-file="C:/WINNT/Fonts/ARIALBD.TTF">
<font-triplet name="Arial" style="normal" weight="bold"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/ARIALI.xml" kerning="yes" embed-file="C:/WINNT/Fonts/ARIALI.TTF">
<font-triplet name="Arial" style="italic" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/ARIALBI.xml" kerning="yes" embed-file="C:/WINNT/Fonts/ARIALBI.TTF">
<font-triplet name="Arial" style="italic" weight="bold"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/ARIBLK.xml" kerning="yes" embed-file="C:/WINNT/Fonts/ARIBLK.TTF">
<font-triplet name="Arial Black" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/ARBLI___.xml" kerning="yes" embed-file="C:/WINNT/Fonts/ARBLI___.TTF">
<font-triplet name="Arial Black" style="italic" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/ARIALN.xml" kerning="yes" embed-file="C:/WINNT/Fonts/ARIALN.TTF">
<font-triplet name="Arial Narrow" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/ARIALNB.xml" kerning="yes" embed-file="C:/WINNT/Fonts/ARIALNB.TTF">
<font-triplet name="Arial Narrow" style="normal" weight="bold"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/ARIALNI.xml" kerning="yes" embed-file="C:/WINNT/Fonts/ARIALNI.TTF">
<font-triplet name="Arial Narrow" style="italic" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/ARIALNBI.xml" kerning="yes" embed-file="C:/WINNT/Fonts/ARIALNBI.TTF">
<font-triplet name="Arial Narrow" style="italic" weight="bold"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/ARIALUNI.xml" kerning="yes" embed-file="C:/WINNT/Fonts/ARIALUNI.TTF">
<font-triplet name="Arial Unicode MS" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/BATANG.xml" kerning="yes" embed-file="C:/WINNT/Fonts/BATANG.TTF">
<font-triplet name="Batang" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/BKANT.xml" kerning="yes" embed-file="C:/WINNT/Fonts/BKANT.TTF">
<font-triplet name="Book Antiqua" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/ANTQUAB.xml" kerning="yes" embed-file="C:/WINNT/Fonts/ANTQUAB.TTF">
<font-triplet name="Book Antiqua" style="normal" weight="bold"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/ANTQUAI.xml" kerning="yes" embed-file="C:/WINNT/Fonts/ANTQUAI.TTF">
<font-triplet name="Book Antiqua" style="italic" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/ANTQUABI.xml" kerning="yes" embed-file="C:/WINNT/Fonts/ANTQUABI.TTF">
<font-triplet name="Book Antiqua" style="italic" weight="bold"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/BOOKOS.xml" kerning="yes" embed-file="C:/WINNT/Fonts/BOOKOS.TTF">
<font-triplet name="Bookman Old Style" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/BOOKOSB.xml" kerning="yes" embed-file="C:/WINNT/Fonts/BOOKOSB.TTF">
<font-triplet name="Bookman Old Style" style="normal" weight="bold"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/BOOKOSI.xml" kerning="yes" embed-file="C:/WINNT/Fonts/BOOKOSI.TTF">
<font-triplet name="Bookman Old Style" style="italic" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/BOOKOSBI.xml" kerning="yes" embed-file="C:/WINNT/Fonts/BOOKOSBI.TTF">
<font-triplet name="Bookman Old Style" style="italic" weight="bold"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/CENTURY.xml" kerning="yes" embed-file="C:/WINNT/Fonts/CENTURY.TTF">
<font-triplet name="Century" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/GOTHIC.xml" kerning="yes" embed-file="C:/WINNT/Fonts/GOTHIC.TTF">
<font-triplet name="Century Gothic" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/GOTHICB.xml" kerning="yes" embed-file="C:/WINNT/Fonts/GOTHICB.TTF">
<font-triplet name="Century Gothic" style="normal" weight="bold"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/GOTHICI.xml" kerning="yes" embed-file="C:/WINNT/Fonts/GOTHICI.TTF">
<font-triplet name="Century Gothic" style="italic" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/GOTHICBI.xml" kerning="yes" embed-file="C:/WINNT/Fonts/GOTHICBI.TTF">
<font-triplet name="Century Gothic" style="italic" weight="bold"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/comic.xml" kerning="yes" embed-file="C:/WINNT/Fonts/comic.TTF">
<font-triplet name="Comic Sans MS" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/comicbd.xml" kerning="yes" embed-file="C:/WINNT/Fonts/comicbd.TTF">
<font-triplet name="Comic Sans MS" style="normal" weight="bold"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/COUR.xml" kerning="yes" embed-file="C:/WINNT/Fonts/COUR.TTF">
<font-triplet name="Courier New" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/COURBD.xml" kerning="yes" embed-file="C:/WINNT/Fonts/COURBD.TTF">
<font-triplet name="Courier New" style="normal" weight="bold"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/COURI.xml" kerning="yes" embed-file="C:/WINNT/Fonts/COURI.TTF">
<font-triplet name="Courier New" style="italic" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/COURBI.xml" kerning="yes" embed-file="C:/WINNT/Fonts/COURBI.TTF">
<font-triplet name="Courier New" style="italic" weight="bold"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/ESTRE.xml" kerning="yes" embed-file="C:/WINNT/Fonts/ESTRE.TTF">
<font-triplet name="Estrangelo Edessa" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/GARA.xml" kerning="yes" embed-file="C:/WINNT/Fonts/GARA.TTF">
<font-triplet name="Garamond" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/GARABD.xml" kerning="yes" embed-file="C:/WINNT/Fonts/GARABD.TTF">
<font-triplet name="Garamond" style="normal" weight="bold"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/GARAIT.xml" kerning="yes" embed-file="C:/WINNT/Fonts/GARAIT.TTF">
<font-triplet name="Garamond" style="italic" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/Georgia.xml" kerning="yes" embed-file="C:/WINNT/Fonts/georgia.TTF">
<font-triplet name="Georgia" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/Georgiab.xml" kerning="yes" embed-file="C:/WINNT/Fonts/georgiab.TTF">
<font-triplet name="Georgia" style="normal" weight="bold"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/Georgiai.xml" kerning="yes" embed-file="C:/WINNT/Fonts/georgiai.TTF">
<font-triplet name="Georgia" style="italic" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/Georgiaz.xml" kerning="yes" embed-file="C:/WINNT/Fonts/georgiaz.TTF">
<font-triplet name="Georgia" style="italic" weight="bold"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/HATTEN.xml" kerning="yes" embed-file="C:/WINNT/Fonts/HATTEN.TTF">
<font-triplet name="Haettenschweiler" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/Impact.xml" kerning="yes" embed-file="C:/WINNT/Fonts/impact.TTF">
<font-triplet name="Impact" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/LATHA.xml" kerning="yes" embed-file="C:/WINNT/Fonts/LATHA.TTF">
<font-triplet name="Latha" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/LUCON.xml" kerning="yes" embed-file="C:/WINNT/Fonts/LUCON.TTF">
<font-triplet name="Lucida Console" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/L_10646.xml" kerning="yes" embed-file="C:/WINNT/Fonts/L_10646.TTF">
<font-triplet name="Lucida Sans" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/L_10646.xml" kerning="yes" embed-file="C:/WINNT/Fonts/L_10646.TTF">
<font-triplet name="Lucida Sans Unicode" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/MANGAL.xml" kerning="yes" embed-file="C:/WINNT/Fonts/MANGAL.TTF">
<font-triplet name="Mangal" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/MICROSS.xml" kerning="yes" embed-file="C:/WINNT/Fonts/MICROSS.TTF">
<font-triplet name="Microsoft Sans Serif" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/MTCORSVA.xml" kerning="yes" embed-file="C:/WINNT/Fonts/MTCORSVA.TTF">
<font-triplet name="Monotype Corsiva" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/MSMINCHO.xml" kerning="yes" embed-file="C:/WINNT/Fonts/MSMINCHO.TTF">
<font-triplet name="MS Mincho" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/OUTLOOK.xml" kerning="yes" embed-file="C:/WINNT/Fonts/OUTLOOK.TTF">
<font-triplet name="MS Outlook" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/pala.xml" kerning="yes" embed-file="C:/WINNT/Fonts/pala.TTF">
<font-triplet name="Palatino Linotype" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/palab.xml" kerning="yes" embed-file="C:/WINNT/Fonts/palab.TTF">
<font-triplet name="Palatino Linotype" style="normal" weight="bold"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/palai.xml" kerning="yes" embed-file="C:/WINNT/Fonts/palai.TTF">
<font-triplet name="Palatino Linotype" style="italic" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/palabi.xml" kerning="yes" embed-file="C:/WINNT/Fonts/palabi.TTF">
<font-triplet name="Palatino Linotype" style="italic" weight="bold"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/SIMSUN.xml" kerning="yes" embed-file="C:/WINNT/Fonts/SIMSUN.TTF">
<font-triplet name="SimSun" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/SYLFAEN.xml" kerning="yes" embed-file="C:/WINNT/Fonts/SYLFAEN.TTF">
<font-triplet name="Sylfaen" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/SYMBOL.xml" kerning="yes" embed-file="C:/WINNT/Fonts/SYMBOL.TTF">
<font-triplet name="Symbol" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/TAHOMABD.xml" kerning="yes" embed-file="C:/WINNT/Fonts/TAHOMABD.TTF">
<font-triplet name="Tahoma" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/TAHOMABD.xml" kerning="yes" embed-file="C:/WINNT/Fonts/TAHOMABD.TTF">
<font-triplet name="Tahoma" style="normal" weight="bold"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/TIMES.xml" kerning="yes" embed-file="C:/WINNT/Fonts/TIMES.TTF">
<font-triplet name="Times New Roman" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/TIMESBD.xml" kerning="yes" embed-file="C:/WINNT/Fonts/TIMESBD.TTF">
<font-triplet name="Times New Roman" style="normal" weight="bold"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/TIMESI.xml" kerning="yes" embed-file="C:/WINNT/Fonts/TIMESI.TTF">
<font-triplet name="Times New Roman" style="italic" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/TIMESBI.xml" kerning="yes" embed-file="C:/WINNT/Fonts/TIMESBI.TTF">
<font-triplet name="Times New Roman" style="italic" weight="bold"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/Trebuc.xml" kerning="yes" embed-file="C:/WINNT/Fonts/trebuc.TTF">
<font-triplet name="Trebuchet MS" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/Trebucbd.xml" kerning="yes" embed-file="C:/WINNT/Fonts/trebucbd.TTF">
<font-triplet name="Trebuchet MS" style="normal" weight="bold"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/Trebucit.xml" kerning="yes" embed-file="C:/WINNT/Fonts/trebucit.TTF">
<font-triplet name="Trebuchet MS" style="italic" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/Trebucbi.xml" kerning="yes" embed-file="C:/WINNT/Fonts/trebucbi.TTF">
<font-triplet name="Trebuchet MS" style="italic" weight="bold"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/VERDANA.xml" kerning="yes" embed-file="C:/WINNT/Fonts/VERDANA.TTF">
<font-triplet name="Verdana" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/VERDANAB.xml" kerning="yes" embed-file="C:/WINNT/Fonts/VERDANAB.TTF">
<font-triplet name="Verdana" style="normal" weight="bold"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/VERDANAI.xml" kerning="yes" embed-file="C:/WINNT/Fonts/VERDANAI.TTF">
<font-triplet name="Verdana" style="italic" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/VERDANAZ.xml" kerning="yes" embed-file="C:/WINNT/Fonts/VERDANAZ.TTF">
<font-triplet name="Verdana" style="italic" weight="bold"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/WEBDINGS.xml" kerning="yes" embed-file="C:/WINNT/Fonts/webdings.TTF">
<font-triplet name="Webdings" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/WINGDING.xml" kerning="yes" embed-file="C:/WINNT/Fonts/WINGDING.TTF">
<font-triplet name="Wingdings" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/WINGDNG2.xml" kerning="yes" embed-file="C:/WINNT/Fonts/WINGDNG2.TTF">
<font-triplet name="Wingdings 2" style="normal" weight="normal"/>
</font>

<font metrics-file="file:///C:/Program Files/eclipse/workspace/data/PDFGENERATION/fonts/WINGDNG3.xml" kerning="yes" embed-file="C:/WINNT/Fonts/WINGDNG3.TTF">
<font-triplet name="Wingdings 3" style="normal" weight="normal"/>
</font>
</fonts>
</configuration>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to