You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Venkat Reddy <va...@googlemail.com> on 2010/05/13 15:15:49 UTC
Failed to generated PDF with MSMincho fonts
Hi,
Please ignore my previous mail, which deals with
'font-selection-strategy' property, not yet implemented in any of the
FOP versions.
I have generated a simple example with a japanese characters in a
block... Please find the input and output files as attachments...
font configuration is as follows...
<font metrics-url="file:///C:/Source/FOPLatest/msmincho.xml"
embed-url="file:///C:/windows/fonts/msmincho.ttc" kerning="yes">
<font-triplet name="MSMincho" style="normal" weight="normal"/>
<font-triplet name="MSMincho" style="normal" weight="bold"/>
<font-triplet name="MSMincho" style="italic" weight="normal"/>
<font-triplet name="MSMincho" style="italic" weight="bold"/>
</font>
I have tried with/without metrics-url property, both are resulting the
same output...
And the above font is installed on my machine, windows....
Please help me in resolving this issue...
Venkat.
Re: Failed to generated PDF with MSMincho fonts
Posted by Venkat Reddy <va...@googlemail.com>.
Hi,
Its all working, thank you very much for your inputs...
I didn't set the right configuration for this sample, that's the reason
why i got '#####' in my output.
Thanks,
Venkat.
Chris Bowditch wrote:
> Venkat Reddy wrote:
>> Hi Chris,
>
> Hi Venkat,
>
> <snip/>
>
>> Parsing font...
>> Reading C:\windows\fonts\msmincho.ttc...
>> This is a TrueType collection file with 2 fonts
>> Containing the following fonts:
>> MS Mincho <-- selected
>> MS PMincho
>> Font Family: [MS Mincho, ?? ??]
>> Creating xml font file...
>> Creating CID encoded metrics...
>> Writing xml font file msminch.xml...
>> This font contains no embedding license restrictions.
>>
>> I have given sub-font="MS Mincho" and got the same result as "#####".
>
> So the end result was the same, but that doesn't mean the route taken
> to get there was the same. Changing to use sub-font attribute should
> have eliminated font not found warnings from FOP. Can you confirm the
> log output from FOP with this configuration?
>
> If the Font is indeed correctly configured now and you still see # in
> the output then that indicates the MS Mincho font you are using does
> not contain the glyphs you are trying to use in your XSL-FO. If that
> is the case then I would expect to see glyph not found warnings in the
> FOP log.
>
>>
>> I have no idea, why this configuration is not working?
>
> <snip/>
>
> Chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Failed to generated PDF with MSMincho fonts
Posted by Venkat Reddy <va...@googlemail.com>.
Chris Bowditch wrote:
> Venkat Reddy wrote:
>> Hi Chris,
>
> Hi Venkat,
>
> <snip/>
>
>> Parsing font...
>> Reading C:\windows\fonts\msmincho.ttc...
>> This is a TrueType collection file with 2 fonts
>> Containing the following fonts:
>> MS Mincho <-- selected
>> MS PMincho
>> Font Family: [MS Mincho, ?? ??]
>> Creating xml font file...
>> Creating CID encoded metrics...
>> Writing xml font file msminch.xml...
>> This font contains no embedding license restrictions.
>>
>> I have given sub-font="MS Mincho" and got the same result as "#####".
>
> So the end result was the same, but that doesn't mean the route taken
> to get there was the same. Changing to use sub-font attribute should
> have eliminated font not found warnings from FOP. Can you confirm the
> log output from FOP with this configuration?
>
> If the Font is indeed correctly configured now and you still see # in
> the output then that indicates the MS Mincho font you are using does
> not contain the glyphs you are trying to use in your XSL-FO. If that
> is the case then I would expect to see glyph not found warnings in the
> FOP log.
>
I am using the windows font file 'C:\windows\fonts\msmincho.ttc' file
for this sample. Please tell me, if this font not suitable for this
sample...
>>
>> I have no idea, why this configuration is not working?
>
> <snip/>
>
> Chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Failed to generated PDF with MSMincho fonts
Posted by Venkat Reddy <va...@googlemail.com>.
Hi Chris,
Chris Bowditch wrote:
> Venkat Reddy wrote:
>> Hi Chris,
>
> Hi Venkat,
>
> <snip/>
>
>> Parsing font...
>> Reading C:\windows\fonts\msmincho.ttc...
>> This is a TrueType collection file with 2 fonts
>> Containing the following fonts:
>> MS Mincho <-- selected
>> MS PMincho
>> Font Family: [MS Mincho, ?? ??]
>> Creating xml font file...
>> Creating CID encoded metrics...
>> Writing xml font file msminch.xml...
>> This font contains no embedding license restrictions.
>>
>> I have given sub-font="MS Mincho" and got the same result as "#####".
>
> So the end result was the same, but that doesn't mean the route taken
> to get there was the same. Changing to use sub-font attribute should
> have eliminated font not found warnings from FOP. Can you confirm the
> log output from FOP with this configuration?
>
> If the Font is indeed correctly configured now and you still see # in
> the output then that indicates the MS Mincho font you are using does
> not contain the glyphs you are trying to use in your XSL-FO. If that
> is the case then I would expect to see glyph not found warnings in the
> FOP log.
>
Yes, there are warnings regarding the Glyphs not found... so you mean to
say that this font file cannot be used for this xsl:fo sample...
C:\Source\FOPLatest>fop -fo
C:\mywork\JavaXSLTSamples\XSLFOSamples\test-msmincho-font.fo -pdf
C:\mywork\JavaXSLTSamples\XSLFOSamples\test-msmincho-font.pdf
14-May-2010 11:24:47 org.apache.fop.events.LoggingEventListener processEvent
WARNING: Font "MS Mincho,normal,400" not found. Substituting with
"any,normal,400".
14-May-2010 11:24:47 org.apache.fop.events.LoggingEventListener processEvent
WARNING: Glyph "?" (0x660e) not available in font "Times-Roman".
14-May-2010 11:24:47 org.apache.fop.events.LoggingEventListener processEvent
WARNING: Glyph "?" (0x671d) not available in font "Times-Roman".
14-May-2010 11:24:47 org.apache.fop.events.LoggingEventListener processEvent
WARNING: Glyph "?" (0x3067, dehiragana) not available in font "Times-Roman".
14-May-2010 11:24:47 org.apache.fop.events.LoggingEventListener processEvent
WARNING: Glyph "?" (0x3059, suhiragana) not available in font "Times-Roman".
Please suggest me a font file, where I can run this test case
successfully...
>>
>> I have no idea, why this configuration is not working?
>
> <snip/>
>
> Chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Failed to generated PDF with MSMincho fonts
Posted by Chris Bowditch <bo...@hotmail.com>.
Venkat Reddy wrote:
> Hi Chris,
Hi Venkat,
<snip/>
> Parsing font...
> Reading C:\windows\fonts\msmincho.ttc...
> This is a TrueType collection file with 2 fonts
> Containing the following fonts:
> MS Mincho <-- selected
> MS PMincho
> Font Family: [MS Mincho, ?? ??]
> Creating xml font file...
> Creating CID encoded metrics...
> Writing xml font file msminch.xml...
> This font contains no embedding license restrictions.
>
> I have given sub-font="MS Mincho" and got the same result as "#####".
So the end result was the same, but that doesn't mean the route taken to
get there was the same. Changing to use sub-font attribute should have
eliminated font not found warnings from FOP. Can you confirm the log
output from FOP with this configuration?
If the Font is indeed correctly configured now and you still see # in
the output then that indicates the MS Mincho font you are using does not
contain the glyphs you are trying to use in your XSL-FO. If that is the
case then I would expect to see glyph not found warnings in the FOP log.
>
> I have no idea, why this configuration is not working?
<snip/>
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Failed to generated PDF with MSMincho fonts
Posted by Venkat Reddy <va...@googlemail.com>.
Hi Chris,
Chris Bowditch wrote:
> Venkat Reddy wrote:
>> Hi,
>
> Hi Venkat,
>
>>
>> Please ignore my previous mail, which deals with
>> 'font-selection-strategy' property, not yet implemented in any of the
>> FOP versions.
>
> Ok.
>
>>
>> I have generated a simple example with a japanese characters in a
>> block... Please find the input and output files as attachments...
>>
>> font configuration is as follows...
>>
>> <font metrics-url="file:///C:/Source/FOPLatest/msmincho.xml"
>> embed-url="file:///C:/windows/fonts/msmincho.ttc" kerning="yes">
>> <font-triplet name="MSMincho" style="normal"
>> weight="normal"/>
>> <font-triplet name="MSMincho" style="normal" weight="bold"/>
>> <font-triplet name="MSMincho" style="italic"
>> weight="normal"/>
>> <font-triplet name="MSMincho" style="italic" weight="bold"/>
>> </font>
>>
>> I have tried with/without metrics-url property, both are resulting
>> the same output...
>
> metrics-url is the old way of doing this I believe. The best way is to
> use sub-font attribute. What value did you use for sub-font? Did you
> list the available fonts in the collection using the following command
> to get the possible sub fonts:
>
> java -cp
> build\fop.jar;lib\avalon-framework-4.2.0.jar;lib\commons-logging-1.0.4.jar;lib\commons-io-1.3.1.jar
> org.apache.fop.fonts.apps.TTFReader msmincho.ttc msmincho.xml
>
> This should list the fonts inside the collection.
I have already tested the sub-font option without mentioning the
metrics-url, the following fonts listed when I executed the command..
C:\Source\FOPLatest>java -cp
build\fop.jar;lib\barcode4j-fop-ext-complete.jar;lib\xmlgraphics-commons-1.4svn.jar;lib\avalon-framework-4.2.0.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 msminch.xml
TTF Reader for Apache FOP svn-trunk
Parsing font...
Reading C:\windows\fonts\msmincho.ttc...
This is a TrueType collection file with 2 fonts
Containing the following fonts:
MS Mincho <-- selected
MS PMincho
Font Family: [MS Mincho, ?? ??]
Creating xml font file...
Creating CID encoded metrics...
Writing xml font file msminch.xml...
This font contains no embedding license restrictions.
I have given sub-font="MS Mincho" and got the same result as "#####".
I have no idea, why this configuration is not working?
>
>>
>> And the above font is installed on my machine, windows....
>>
>> Please help me in resolving this issue...
>
> Thanks,
>
> Chris
>
>>
>> Venkat.
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
Thanks,
Venkat.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Failed to generated PDF with MSMincho fonts
Posted by Chris Bowditch <bo...@hotmail.com>.
Venkat Reddy wrote:
> Hi,
Hi Venkat,
>
> Please ignore my previous mail, which deals with
> 'font-selection-strategy' property, not yet implemented in any of the
> FOP versions.
Ok.
>
> I have generated a simple example with a japanese characters in a
> block... Please find the input and output files as attachments...
>
> font configuration is as follows...
>
> <font metrics-url="file:///C:/Source/FOPLatest/msmincho.xml"
> embed-url="file:///C:/windows/fonts/msmincho.ttc" kerning="yes">
> <font-triplet name="MSMincho" style="normal" weight="normal"/>
> <font-triplet name="MSMincho" style="normal" weight="bold"/>
> <font-triplet name="MSMincho" style="italic" weight="normal"/>
> <font-triplet name="MSMincho" style="italic" weight="bold"/>
> </font>
>
> I have tried with/without metrics-url property, both are resulting the
> same output...
metrics-url is the old way of doing this I believe. The best way is to
use sub-font attribute. What value did you use for sub-font? Did you
list the available fonts in the collection using the following command
to get the possible sub fonts:
java -cp
build\fop.jar;lib\avalon-framework-4.2.0.jar;lib\commons-logging-1.0.4.jar;lib\commons-io-1.3.1.jar
org.apache.fop.fonts.apps.TTFReader msmincho.ttc msmincho.xml
This should list the fonts inside the collection.
>
> And the above font is installed on my machine, windows....
>
> Please help me in resolving this issue...
Thanks,
Chris
>
> Venkat.
>
>
> ------------------------------------------------------------------------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org