[Vtigercrm-commits] [vtiger development] #5545: Ready-to-use solution for Japanese/Chinese/Korean PDF
vtiger development
vtiger-tickets at trac.vtiger.com
Mon Mar 9 14:48:10 EDT 2009
#5545: Ready-to-use solution for Japanese/Chinese/Korean PDF
-----------------------+----------------------------------------------------
Reporter: hhokawa | Owner: developer
Type: defect | Status: new
Priority: minor | Milestone: 5.1.0
Component: vtigercrm | Version: 5.1.0-val1
Keywords: |
-----------------------+----------------------------------------------------
Japanese/Chinese/Korean chars are garbled in PDF files.
But new tcpdf module used in 5.1.0 includes ready-to-use
CJK(China/Japan/Kora) fonts in it.
I successfully tested each of these CJK fonts by modifing tcpdf.php line
2674 as below
{
$family='FreeSerif';
// $family='arialunicid0'; // Arial Uni CID0 (Japanese)
// $family='kozgopromedium'; // Kozuka Gorhic Pro M (Japanese)
// $family='kozminproregular'; // Kozuka Mincho Pro M (Japanese)
// $family='hysmyeongjostdmedium'; // HYSMyeongJoStd-Medium (Korean)
// $family='msungstdlight'; // MSungStd-Light (Traditional Chinese)
// $family='stsongstdlight'; // STSongStd-Light (Simplified Chinese)
}
Original FreeSerif font can't display japanese/chinese/korean chars, these
CJK fonts can't display most of minor languages. So user may need to
change font based on thier location.
I don't know my direct modification to tcpdf.php above is proper or not,
it's appreciated if you can provide some ready-to-use method (including
code comment in/out) to switch into these CJK fonts easily.
Attachment is my tested PDF result with japan/chinese/korean chars.
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/5545>
vtiger development <http://trac.vtiger.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list