PDFsharp & MigraDoc Forum https://forum.pdfsharp.net/ |
|
How to embed font in pdf? https://forum.pdfsharp.net/viewtopic.php?f=2&t=2206 |
Page 1 of 1 |
Author: | FrageWurm [ Fri Nov 02, 2012 5:19 pm ] |
Post subject: | How to embed font in pdf? |
Hi, I have troube with some pdf files. If I create a pdf with pdfsharp and Im using a special font, a font that is just on my system and nowhere else, the created pdf is looking different on other systems. Im doing something like this: Code: gfx.DrawString("my string", new XFont("some special font", size), ...); I think its because you cannot display a font if its not installed on your system. So on a system where this "special font" is not available the pdf is just displaying another standard font. How can I avoid this? Is there a way to embed a font in the pdf? I dont want to convert a font to an image and insert the image into the pdf, because its not more a vector graphic. Some suggestions? Thx |
Author: | () => true [ Sat Nov 03, 2012 11:28 am ] |
Post subject: | Re: How to embed font in pdf? |
Hi! Use XPdfFontOptions. See the Unicode sample: http://www.pdfsharp.net/wiki/Unicode-sample.ashx |
Author: | FrageWurm [ Mon Nov 05, 2012 9:42 am ] |
Post subject: | Re: How to embed font in pdf? |
Ah thats nice, thank you. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |