Venkat Reddy wrote:
Hi,

I am trying to generate a PDF document with some japanese characters in it. I am using the FOP Trunk version on Windows environment.

My Font configuration listed below...

<font kerning="yes" embed-url="file:///C:/Windows/Fonts/msgothic.ttc">
<font-triplet name="MSGothic" style="normal" weight="normal" encoding-mode=”auto”/>
</font>

MS Gothic is a True Type Collection (TTC) not a True Type Font (TTF) You must therefore specify the sub-font attribute on the font element as described here: http://xmlgraphics.apache.org/fop/trunk/fonts.html#truetype-collections-metrics


And the font is installed on my windows font list. I am attaching my test file and the output file with this mail.

And the console is showing the following information...

C:\Source\FOPLatest>fop -fo C:\mywork\JavaXSLTSamples\XSLFOSamples\test-font-selection-strategy.fo -pdf C:\mywork\JavaXSLTSamples\XSLFOSamples\test-font-selection-strategy.pdf 13-May-2010 13:24:54 org.apache.fop.events.LoggingEventListener processEvent WARNING: Font "Times New Roman,normal,400" not found. Substituting with "any,normal,400". 13-May-2010 13:24:54 org.apache.fop.events.LoggingEventListener processEvent
WARNING: Glyph "?" (0x8a00) not available in font "Times-Roman".
13-May-2010 13:24:54 org.apache.fop.events.LoggingEventListener processEvent
WARNING: Glyph "?" (0x8a9e) not available in font "Times-Roman".
13-May-2010 13:24:54 org.apache.fop.events.LoggingEventListener processEvent
WARNING: Glyph "?" (0x304a, ohiragana) not available in font "Times-Roman".
13-May-2010 13:24:54 org.apache.fop.events.LoggingEventListener processEvent WARNING: Glyph "?" (0x3088, yohiragana) not available in font "Times-Roman". 13-May-2010 13:24:54 org.apache.fop.events.LoggingEventListener processEvent WARNING: Glyph "?" (0x3073, bihiragana) not available in font "Times-Roman". 13-May-2010 13:24:54 org.apache.fop.events.LoggingEventListener processEvent
WARNING: Glyph "?" (0x6587) not available in font "Times-Roman".
13-May-2010 13:24:54 org.apache.fop.events.LoggingEventListener processEvent
WARNING: Glyph "?" (0x5b57) not available in font "Times-Roman".
13-May-2010 13:24:54 org.apache.fop.events.LoggingEventListener processEvent WARNING: Glyph "?" (0x30b3, kokatakana) not available in font "Times-Roman". 13-May-2010 13:24:54 org.apache.fop.events.LoggingEventListener processEvent WARNING: Font "Sazanami Mincho,normal,400" not found. Substituting with "any,normal,400".

please help me in resolving this issue...

Which issue do you need resolving exactly? There are some font not found warnings. Did you define "Sazanami Mincho" in fop.xconf? Glyph not found warnings are to be expected as you have placed Japanese characters into a block with font-family="Times New Roman" Times and Times New Roman fonts do not contain glyphs for CJK characters


Thanks,
Venkat.

Chris



------------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to