PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 3:12 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Unicode not unicoding
PostPosted: Sun Feb 06, 2022 4:34 am 
Offline

Joined: Tue Nov 17, 2020 2:40 am
Posts: 4
I'm trying to include these characters in a PDF generated by PDFSharp.

¼-½

They won't render. I used this code to create the options:


XPdfFontOptions options = new XPdfFontOptions(PdfFontEncoding.Unicode);

But when I examine "options" in the debugger the encoding isn't unicode - it's automatic - which is no different than what it was before I defined any options!

What am I missing to get these characters to render in the PDF - font in use is Courier New - but I've tried many others.

Thanks


Top
 Profile  
Reply with quote  
PostPosted: Sun Feb 06, 2022 4:05 pm 
Offline

Joined: Tue Nov 17, 2020 2:40 am
Posts: 4
For those that might encounter this - it is not a PDFSharp or MigraDoc issue. It was my streamreader for the text file not specifying the encoding as default.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 138 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group