Wednesday 28 July 2004 12:06:44 am
I thought of sharing my experiance with installing fonts on ezpublish. My objective was to enable arial font in pdf generating module. I followed the instructions from http://ez.no/ez_publish/documentation/incoming/truetype_font_in_pdf I downloaded the ttfutils-0.2 package and also the fonts arial.ttf I tried the command ttf2afm arial.ttf I got a file arial.afm as required but the size of the file was showing 0. Soon I realized that command given is not the actual one and tried the following command ./ttf2afm arial -o arial.afm from the installation directory of ttfutils-0.2. I Checked the afm created
All the lines started with C -1 and I manually replaced the -1 with the character offset. ie first c -1 with c 1, second with c 2 etc . The next step was to run php afm2font.php arial A file called php_arial.font was created.
Installing the font I Copied the .ttf and the .font file created into lib/ezpdf/classes/fonts/. Hope this helps
Sreejith
[email protected]
Marlabs .Inc Austin
|