1. Create new ufm file e.g. freemono - ttf2ufm -a -F freemono.ttf - you need ttf2ufm.exe in joomla/libraries/tcpdf/tools
2. Attention - ttf2ufm.exe creates ufm file with error: Character "Ċ" instead of "č". You need to edit this ufm file:
Change this code from:
U 266 ; WX 600 ; N Cdotaccent ; G 204 ;
U 269 ; WX 600 ; N ccaron ; G 207 ;
to:
U 266 ; WX 600 ; N Cdotaccent ; G 207 ;
U 269 ; WX 600 ; N ccaron ; G 204 ;
(Changing values: Cdotaccent -> ccaron, ccaron -> Cdotaccent - you must change G values and WX values too, if they are different)
It is only example. Some ufm files doesn't contain "Cdotaccent" but only "Cdot". If you need "Ċ", don't do this change (Thanks karol.cejka for his advice)
At the end, you create freemono.php , freemono.z, freemono.ctg.z: php -q makefontuni.php freemono.ttf freemono.ufm - you need makefontuni.php in joomla/libraries/tcpdf/tools
and you copy this files (freemono.php , freemono.z, freemono.ctg.z) to joomla/language/pdf_fonts/
Don't forget to change your language xml file (e.g cs-CZ.xml in joomla/language/cs-CZ/):
Code: Select all
<pdfFontName>freemono</pdfFontName>