PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Embedding font problem
https://forum.pdfsharp.net/viewtopic.php?f=2&t=83
Page 1 of 1

Author:  brianha [ Fri Feb 23, 2007 8:07 am ]
Post subject:  Embedding font problem

Hi,

I'm trying to embed a font using the Xfont constructor with XpdfOptions, but can't get it to work. Adobe reader says it can't find or create the font. What am i doing wrong?

I'm unsure about the parameters "basefont as string" and "fontfile as string"

Code:
XPdfFontOptions(True, True, "OCRBB12", "OCRB-B12.TTF")


Any help would be appreciated.

Author:  Stefan Lange [ Thu Mar 08, 2007 11:31 pm ]
Post subject: 

The documentation says:
Code:
<param name="baseFont">Not yet implemented. Should be "".</param>

This is right. Just use the first two parameters to embed the font with WinAnsi encoding.
Embedding Unicode fonts is uncomplete in the last public version, but will work in next release.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/