Hi All,

 

I'm playing around with the PDF classes, and am trying to utilize some
non-standard fonts. In the documentation it says that it can use TTF and OTF
fonts. So I tried copying one of my windows fonts that was an OTF over to
try out. I ended up getting the following error:

 


Fatal error: Uncaught exception 'Zend_Pdf_Exception' with message 'Cannot
determine font type: MyriadPro-Bold.otf' in
C:\wamp\www\domain.com\Zend\library\Zend\Pdf\Font.php:714 Stack trace: #0
C:\wamp\www\domain.com\domain.com\pdf\index.php(12):
Zend_Pdf_Font::fontWithPath('MyriadPro-Bold....') #1 {main} thrown in
C:\wamp\www\studiob-gso.com\Zend\library\Zend\Pdf\Font.php on line 714

 

 

Obviously it didn't like my font. Is there a way to know before hand whether
or not a font I have will work or not? 

 

Thanks in advance, Mark

Reply via email to