How to embed a Font in a PDF with RDLC
Embedding font’s works with Microsoft Reporting 2010 or later the following restrictions still apply
- Font must be marked as embedding allowed
- Font must be of type TrueType
You may experience the problem that your Font is getting embedded but your PDF still displays text in Arial. This happened to me after i installed some new fonts on a Windows Server 2008 R2, restarting the AppPool (ASP.NET MVC) did not solve this Problem, a Server restart was needed.
plin
Updated on June 12, 2022Comments
-
plin about 2 years
i am using Microsoft.Reporting.WebForms.LocalReport to generate some PDF, everything works like a charm, but now evil marketing wants to use a custom font (they are using such crazy arguments as "corporate identity" and stuff).
i already goggled around and now i know that
- i need ReportViewer 2008 SP1 or greater
- the font has to be marked as embedding allowed
- the font has to be TrueType
but it still doesn't work. i belief that RDLC does not support this feature, does anybody know if this is the case? unfortunately i cant use Server-side reports cause i am lacking a Reporting Server.
tia