Report export to pdf does not embed font

I have a local report (rdlc) that uses Arial as a font. When I export a report using the 2010 Report Viewer (Winforms) to PDF, it will not use the correct font. He uses Helvetica instead of Arial. Can I force a font? I read that Report Viewer 2010 supports embedding fonts, but how do you force it?

+4
source share
1 answer

Fonts are embedded in the PDF file if the following conditions apply (found here ):

  • Font rights are provided by the font author. Installed fonts include a property that indicates whether the font author intends to allow embedding of the font in the document. If the property value is EMBED_NOEMBEDDING, the font is not embedded in the PDF file. See "TTGetEmbeddingType" on msdn.microsoft.com for more information.
  • TrueType Font.
  • Fonts refer to visible elements in the report. If the font refers to an element whose Hidden property is set to True, the font is not needed to display the displayed data and will not be included in the file. Fonts are embedded only when they are needed to display the displayed report data.

For more details, try this second post may be helpful.

0
source

Source: https://habr.com/ru/post/1445070/


All Articles