I appended font-metrics for using "Cyberbit.ttf" &
"Cybercjk.ttf" to fop-font-metrics.jar.
[Usage]
ftp://ftp.netscape.com/pub/communicator/extras/fonts/windows/
unzip Font Files and move to $JRE_HOME\lib\fonts.
download fop-font-metrics.jar(attached here) and
replace original
one($GanttProject_HOME\lib\fop-font-metrics.jar).
create/edit and set xslfo(PDF export Theme).
4.1. specify "font-family" attribute.
e.g.) ganttproject.xsl(supplied in souce package;
data\resources\xslfo)
<xsl:variable name="font" select="'Bitstream CyberCJK'">
or
<xsl:variable name="font" select="'Bitstream Cyberbit"></xsl:variable></xsl:variable>
4.2. set a new PDF export Theme.
I tested with Japanese Characters on follow environment
Please try to test my work.
Anonymous
Logged In: YES
user_id=1227443
Sorry. I failed to attach file so do it again.
Logged In: YES
user_id=1227443
My file is too big to attach. then I supply row font metrics
files package. We can append new font-metrics; follow steps
unpack my archive; then appear "font-metrics" directory
including 2 files("Cyberbit.ttf.xml" and "Cybercjk.ttf.xml").
move "font-metrics" directory to $GanttProject_HOME\lib.
modify existing "fop-font-metrics.jar" to run jar command;
$ %JAVA_HOME%\bin\jar uvf fop-font-metrics.jar font-metrics
row font metrics archive.
Logged In: YES
user_id=1594086
This method doesn't work on 2.0.2 though it worked on 2.0-pre3.
Character strings are displayed like "####" in the PDF.
Logged In: YES
user_id=1422737
Originator: NO
I tested with 2.0.2 and it works.
Thanks very much for this patch.
My environment as following:
OS: Linux(Ubuntu Dapper)
JDK: IBM JDK 1.5.0 for linux
Ganttproject: 2.0.2
Logged In: YES
user_id=1227443
Originator: YES
The patch for sazanami-font has been opened to the public in following URL.
http://tera-com.fromc.jp/blog/tera-com/temp/org.ganttproject.impex.htmlpdf_2.0.zip