Hi Chris,
Chris Bowditch wrote:
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
Yes, you are right...
With True Type Collection, you need to use either the metrics-url or the
sub-font attribute. I have tried the both the options
Generated the metrics file using the following command...
java -cp
build\fop.jar;lib\avalon-framework-4.2.0.jar;lib\barcode4j-fop-ext-complete.jar;lib\xmlgraphics-commons-1.4svn.jar;lib\commons-logging-1.0.4.jar;lib\commons-io-1.3.1.jar
org.apache.fop.fonts.apps.TTFReader -ttcname "MS Mincho"
C:\windows\fonts\msmincho.ttc msmincho.xml
And also tried with sub-font attribute, sub-font = "MS Mincho", but of
no use...
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
I need to produce the characters '明朝です' in my pdf output document. I
am getting '######' instead of Japanese characters...
Please find the correct details in my second mail... ignore this mail...
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]
Thanks,
Venkat.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]