Hi, Arial seems not to be available on your system and the closest match returned by fontconfig seems to be wqy-zenhei.ttc, which is a TrueTypeCollection. TrueTypeCollections are not supported by PoDoFo, at the moment.
You can fix this, by either installing Arial and the other Microsoft Core fonts
or by replacing Arial in the sourc ecode of helloworld.cpp with another
available font on your system that is a TTF.
Best regads,
Dominik
Am Dienstag 04 Mai 2010 schrieb shoks:
> Hi All,
>
> Has anyone experienced this? Was able to compile and install PoDoFo on
> Ubuntu 9.10 without any problem. When running the test program, I got this
> error:
>
> $ ./helloworld out.pdf
> DEBUG: Warning: Unrecognized FontFormat:
> /usr/share/fonts/truetype/wqy/wqy-zenhei.ttc
>
>
> PoDoFo encounter an error. Error: 34 ePdfError_UnsupportedFontFormat
> Error Description: This font format is not supported by PoDoFO.
> Callstack:
> #0 Error Source:
> /home/sho/work/webprint/podofo/src/podofo-0.8.0/src/PdfFontMetrics.cpp:168
> Information: /usr/share/fonts/truetype/wqy/wqy-zenhei.ttc
>
>
> Is there a work-around? How can I change the font format at compile time or
> runtime?
>
> Thank you.
>
--
**********************************************************************
Dominik Seichter - [email protected]
KRename - http://www.krename.net - Powerful batch renamer for KDE
KBarcode - http://www.kbarcode.net - Barcode and label printing
PoDoFo - http://podofo.sf.net - PDF generation and parsing library
SchafKopf - http://schafkopf.berlios.de - Schafkopf, a card game, for KDE
Alan - http://alan.sf.net - A Turing Machine in Java
**********************************************************************
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------
_______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
