Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Embedding fonts in an exported PDF (Read 43 times)
David Long
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 138
Location: England
Joined: Oct 23rd, 2006
Embedding fonts in an exported PDF
Jul 14th, 2025 at 10:52am
Print Post  
The PDF files that I export from PdfExporter do not show the fonts correctly in MS Edge, but look good in Acrobat. An internet search suggests that the fonts should be embedded in the PDF file for them to be shown correctly in Edge.  Is there an option or combination of options to do this?

DavidL
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3380
Joined: Oct 19th, 2005
Re: Embedding fonts in an exported PDF
Reply #1 - Jul 14th, 2025 at 2:52pm
Print Post  
We might have done that deliberately, font files were usually copyrighted at the time we created PDF exporter... We'll have in mind an option for next release, in case you'd want to use it with free fonts (e.g. https://developers.google.com/fonts).

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3380
Joined: Oct 19th, 2005
Re: Embedding fonts in an exported PDF
Reply #2 - Jul 15th, 2025 at 3:27pm
Print Post  
In our tests, Edge, Chrome and Firefox all display the fonts referenced from PDF as long as they are installed on the local system. Is there any specific font that's not working for you in that scenario?

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
David Long
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 138
Location: England
Joined: Oct 23rd, 2006
Re: Embedding fonts in an exported PDF
Reply #3 - yesterday at 5:52pm
Print Post  
Just testing with Edge, our default font, Segoe UI, does not work, and neither does Arial. Acrobat seems to read both files OK.  The code we use to generate the files looks a bit like this...

                    var pdf = new PdfExporter();

                    try
                    {
                        pdf.AutoDetectEncoding = false;
                        pdf.DefaultEncoding = Encoding.Unicode;

                        pdf.Export(FlowChart, dlg.FileName);
                    }

                    catch (Exception ex)
                    {
                        ErrorBox(Resources.String_WriteFileFailed + ex.Message);
                    }

Both Arial and Segoe UI seemed to be installed locally.

DavidL
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint