Connecting Tech Pros Worldwide Help | Site Map

font problems in ezPDF

 
LinkBack Thread Tools Search this Thread
  #1  
Old June 29th, 2006, 08:25 AM
Sonnich
Guest
 
Posts: n/a
Default font problems in ezPDF

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


  #2  
Old June 29th, 2006, 09:05 AM
Kimmo Laine
Guest
 
Posts: n/a
Default Re: font problems in ezPDF

"Sonnich" <sonnich.jensen@elektrobit.com> wrote in message
news:1151569577.647324.260080@m73g2000cwd.googlegr oups.com...[color=blue]
> 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.[/color]

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
spam@outolempi.net | Gedoon-S @ IRCnet | rot13(xvzzb@bhgbyrzcv.arg)


  #3  
Old June 29th, 2006, 03:35 PM
Sonnich
Guest
 
Posts: n/a
Default Re: font problems in ezPDF


Kimmo Laine wrote:[color=blue]
> "Sonnich" <sonnich.jensen@elektrobit.com> wrote in message
> news:1151569577.647324.260080@m73g2000cwd.googlegr oups.com...[color=green]
> > 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.[/color]
>
> 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[/color]

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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.