By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,985 Members | 1,694 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,985 IT Pros & Developers. It's quick & easy.

font problems in ezPDF

P: n/a
hi all!

I use ezPDF like this

$pdf = new Cezpdf('a4','potrait');

$tmp = array(
'b'=>'Courier-Bold.AFM',
'i'=>'Courier-Oblique.AFM',
'bi'=>'Courier-BoldOblique.AFM',
'ib'=>'Courier-BoldOblique.AFM',
'bb'=>'Times-Roman.afm' );
$pdf->setFontFamily('Courier.AFM',$tmp);

$codeFont = 'fonts/Courier.AFM';
$pdf->selectFont($codeFont);

$pdf->addText(.....

The problem is that I cannot change the font, it remains to be
Helvetica... the fonts folder is present, moving the files and checking
whether they are corrupt does not change anything.

Can anyone explain?
Or send their way of doing this?
->Secondly, where do I get a newer version of ezPDF, I have 0.9 for
now.

BR
Sonnich

Jun 29 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Sonnich" <so************@elektrobit.com> wrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
hi all!

I use ezPDF like this

$pdf = new Cezpdf('a4','potrait');

$tmp = array(
'b'=>'Courier-Bold.AFM',
'i'=>'Courier-Oblique.AFM',
'bi'=>'Courier-BoldOblique.AFM',
'ib'=>'Courier-BoldOblique.AFM',
'bb'=>'Times-Roman.afm' );
$pdf->setFontFamily('Courier.AFM',$tmp);

$codeFont = 'fonts/Courier.AFM';
$pdf->selectFont($codeFont);

$pdf->addText(.....

The problem is that I cannot change the font, it remains to be
Helvetica... the fonts folder is present, moving the files and checking
whether they are corrupt does not change anything.

Can anyone explain?
Or send their way of doing this?
->Secondly, where do I get a newer version of ezPDF, I have 0.9 for
now.


http://www.ros.co.nz/pdf/

I've never had any trouble with changing the font. Maybe you should ask this
at the ezpdf support forums.
http://sourceforge.net/forum/forum.php?forum_id=147987

--
"ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" -lpk
sp**@outolempi.net | Gedoon-S @ IRCnet | rot13(xv***@bhgbyrzcv.arg)
Jun 29 '06 #2

P: n/a

Kimmo Laine wrote:
"Sonnich" <so************@elektrobit.com> wrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
hi all!

I use ezPDF like this

$pdf = new Cezpdf('a4','potrait');

$tmp = array(
'b'=>'Courier-Bold.AFM',
'i'=>'Courier-Oblique.AFM',
'bi'=>'Courier-BoldOblique.AFM',
'ib'=>'Courier-BoldOblique.AFM',
'bb'=>'Times-Roman.afm' );
$pdf->setFontFamily('Courier.AFM',$tmp);

$codeFont = 'fonts/Courier.AFM';
$pdf->selectFont($codeFont);

$pdf->addText(.....

The problem is that I cannot change the font, it remains to be
Helvetica... the fonts folder is present, moving the files and checking
whether they are corrupt does not change anything.

Can anyone explain?
Or send their way of doing this?
->Secondly, where do I get a newer version of ezPDF, I have 0.9 for
now.


http://www.ros.co.nz/pdf/

I've never had any trouble with changing the font. Maybe you should ask this
at the ezpdf support forums.
http://sourceforge.net/forum/forum.php?forum_id=147987


I found one thing... remove the .afm then it works,

$codeFont = 'fonts/Courier';
$pdf->selectFont($codeFont);

but later on, I still get an error sometimes when opening the document,
that the font cannot be found (in adobe that is), and it defaults to
Helvetica.

The forum is down - will check later on

Jun 29 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.