Skip to main content



      Home
Home » Archived » BIRT » PDF fonts not visible
PDF fonts not visible [message #58916] Fri, 15 July 2005 06:35 Go to next message
Eclipse UserFriend
Originally posted by: vinunair.crimsonlogic.co.in

Hi,

I have a problem viewing the report in PDF file.The report has
arabic characters.Please any one show me how to configure FOP set up.
I know it is given in FOP site,but i didnt follow it.
Please help.

Thanks.
Re: PDF fonts not visible [message #58941 is a reply to message #58916] Fri, 15 July 2005 07:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: berni_hofer.aon.at

i had the same problem with the fonts in pdf ...

you have to make a file like: fop.xml and put it in your
"<directory>:\<eclipse plugin
folder> \org.eclipse.birt.report.viewer_1.0.0\birt\WEB-INF\plugins\o rg.eclipse.birt.report.engine.emitter.fo "
folder ... in this case the preview in birt will load this fop.xml file.
if you have a own application which creats the report with the report
engine, than you have to put the fop.xml file into plugin folder from
"org.eclipse.birt.report.engine.emitter.fo" in your workspace!!

fop xml looks like:

----- begin example fop.xml --------

<configuration>

<entry>
<key>version</key>
<value>org.eclipse.birt.report.engine.ermitter.fo FOP 0.20.5</value>
</entry>

<entry>
<key>baseDir</key>
<value>... put here your directory were the fonts are copied ...</value>
</entry>

<entry>
<key>fontBaseDir</key>
<value>... put here your directory were the fonts are copied ...</value>
</entry>

<fonts>

<font metrics-file="fonts\ttfcm.xml" embed-file="winfonts\ARIAL.TTF"
kerning="yes">
<font-triplet name="arial" style="normal" weight="normal"/>
<font-triplet name="arial" style="normal" weight="bold"/>
</font>

<font metrics-file="fonts\univers.xml" embed-file="winfonts\unvr55w.TTF"
kerning="yes">
<font-triplet name="univers" style="normal" weight="normal"/>
<font-triplet name="univers" style="italic" weight="bold"/>
</font>

<font metrics-file="fonts\universbolditalic.xml"
embed-file="winfonts\unvr66w.TTF" kerning="yes">
<font-triplet name="univers" style="italic" weight="bold"/>
</font>

<font metrics-file="fonts\courier.xml" embed-file="winfonts\cour.TTF"
kerning="yes">
<font-triplet name="courier new" style="normal" weight="normal"/>
<font-triplet name="courier new" style="normal" weight="bold"/>
<font-triplet name="courier new" style="italic" weight="normal"/>
<font-triplet name="courier new" style="italic" weight="bold"/>
</font>

</fonts>

</configuration>

----- end example fop.xml --------

to get the metrics-file you have to download fop and put it in a folder on
your hard disc, afterwards open the command line and make your metric-file
like this command-line command:

----- begin example to make your own metric-file --------

// this example takes the windows font courier and put it into the folder:
// "C:\fop\myfonts\" named courier.xml

C:\>java -cp
C:\fop\build\fop.jar;C:\fop\lib\avalon-framework.jar;C:\fop\ lib\xml
-apis.jar;C:\fop\lib\xercesImpl.jar;C:\fop\lib\xalan.jar
org.apache.fop.fonts.ap
ps.TTFReader -enc ansi C:\WINNT\Fonts\cour.ttf C:\fop\myfonts\courier.xml


----- end example to make your own metric-file --------

i hope this can help you ... it seems to be complicated, but it isn't!!

please excuse my bad english, it's not my native language!

bernhard
Re: PDF fonts not visible [message #59019 is a reply to message #58941] Fri, 15 July 2005 09:15 Go to previous message
Eclipse UserFriend
it will be usefull for you take a look at foop web[1] for more info about
metric fonts creation

[1]http://xml.apache.org/fop/fonts.html#truetype-metrics

regards
stavros

"bernhard" <berni_hofer@aon.at> wrote in message
news:9fbcddde8294a4d738a5b32dc16fef74$1@www.eclipse.org...
>i had the same problem with the fonts in pdf ...
>
> you have to make a file like: fop.xml and put it in your
> "<directory>:\<eclipse plugin
> folder> \org.eclipse.birt.report.viewer_1.0.0\birt\WEB-INF\plugins\o rg.eclipse.birt.report.engine.emitter.fo "
> folder ... in this case the preview in birt will load this fop.xml file.
> if you have a own application which creats the report with the report
> engine, than you have to put the fop.xml file into plugin folder from
> "org.eclipse.birt.report.engine.emitter.fo" in your workspace!!
>
> fop xml looks like:
>
> ----- begin example fop.xml --------
>
> <configuration>
>
> <entry>
> <key>version</key>
> <value>org.eclipse.birt.report.engine.ermitter.fo FOP 0.20.5</value>
> </entry>
>
> <entry>
> <key>baseDir</key>
> <value>... put here your directory were the fonts are copied ...</value>
> </entry>
>
> <entry>
> <key>fontBaseDir</key>
> <value>... put here your directory were the fonts are copied ...</value>
> </entry>
>
> <fonts>
>
> <font metrics-file="fonts\ttfcm.xml" embed-file="winfonts\ARIAL.TTF"
> kerning="yes">
> <font-triplet name="arial" style="normal" weight="normal"/>
> <font-triplet name="arial" style="normal" weight="bold"/>
> </font>
>
> <font metrics-file="fonts\univers.xml" embed-file="winfonts\unvr55w.TTF"
> kerning="yes">
> <font-triplet name="univers" style="normal" weight="normal"/>
> <font-triplet name="univers" style="italic" weight="bold"/>
> </font>
>
> <font metrics-file="fonts\universbolditalic.xml"
> embed-file="winfonts\unvr66w.TTF" kerning="yes">
> <font-triplet name="univers" style="italic" weight="bold"/>
> </font>
>
> <font metrics-file="fonts\courier.xml" embed-file="winfonts\cour.TTF"
> kerning="yes">
> <font-triplet name="courier new" style="normal" weight="normal"/>
> <font-triplet name="courier new" style="normal" weight="bold"/>
> <font-triplet name="courier new" style="italic" weight="normal"/>
> <font-triplet name="courier new" style="italic" weight="bold"/>
> </font>
>
> </fonts>
>
> </configuration>
>
> ----- end example fop.xml --------
>
> to get the metrics-file you have to download fop and put it in a folder on
> your hard disc, afterwards open the command line and make your metric-file
> like this command-line command:
> ----- begin example to make your own metric-file --------
>
> // this example takes the windows font courier and put it into the folder:
> // "C:\fop\myfonts\" named courier.xml
>
> C:\>java -cp
> C:\fop\build\fop.jar;C:\fop\lib\avalon-framework.jar;C:\fop\ lib\xml
> -apis.jar;C:\fop\lib\xercesImpl.jar;C:\fop\lib\xalan.jar
> org.apache.fop.fonts.ap
> ps.TTFReader -enc ansi C:\WINNT\Fonts\cour.ttf C:\fop\myfonts\courier.xml
>
>
> ----- end example to make your own metric-file --------
>
> i hope this can help you ... it seems to be complicated, but it isn't!!
>
> please excuse my bad english, it's not my native language!
>
> bernhard
>

--
Stavros S. Kounis
Osmosis networks & consulting http://www.osmosis.gr
Read my weblog at http://tools.osmosis.gr/blog
Previous Topic:Any support for: Scripted Reports with Drilldowns over SDO DataGraph Object ?
Next Topic:need more clarification on charts & images problem
Goto Forum:
  


Current Time: Thu May 08 07:59:43 EDT 2025

Powered by FUDForum. Page generated in 0.48868 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top