Jump to content
Sign in to follow this  
netbull

PDF Invoice & packing slip.

Recommended Posts

How can change carset/encoding to windows-1251. I want to translate all to Bulgarian but PDF encoding is not working.


I Need Money

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×