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: [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]