netbull Posted April 23, 2007 Share Posted April 23, 2007 How can change carset/encoding to windows-1251. I want to translate all to Bulgarian but PDF encoding is not working. Quote I Need Money Link to comment Share on other sites More sharing options...
netbull Posted April 26, 2007 Author Share Posted April 26, 2007 hey?! any help here ?! Quote I Need Money Link to comment Share on other sites More sharing options...
denis.waraus Posted June 21, 2007 Share Posted June 21, 2007 hey?! any help here ?! Sorry for my english .... Make new font with charset cp1251 (default charset is cp1252) for example ttf2pt1 -a c:\windows\fonts\arial.ttf arial_h after it, call function define in /fpdf/font/makefont/makefont.php MakeFont('c:\\windows\\fonts\\arial.ttf','arial_h.afm','cp1251'); this function create two file arial_h.z arial_h.php copy this files to /fpdf/font/ before using font, you need call AddFont('arial_h') SetFont('arial_h', ......) that's all p.s. if you want using bold or italic font, you need repeate this procedure for tree fonts: ttf2pt1 -a c:\windows\fonts\arialbd.ttf arial_hbi ttf2pt1 -a c:\windows\fonts\ariali.ttf arial_hi ttf2pt1 -a c:\windows\fonts\arialbi.ttf arial_hbi Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.