Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PDF Invoice & packing slip.


netbull

Recommended Posts

  • 1 month later...
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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...