Unplanned
Last Updated: 29 Jul 2025 14:05 by ADMIN
AndreaT
Created on: 29 Jul 2025 13:44
Category: PdfViewer
Type: Bug Report
1
RadPdfViewer: Text is not rendered due to a missing font
Text is not rendered due to a missing font. In this case, the font is ArialBoldItalic, which the control could not find. 
1 comment
ADMIN
Dinko | Tech Support Engineer
Posted on: 29 Jul 2025 14:05

Hi AndreaT,

Thank you for reporting this behavior. As a workaround, we can register the Fonts used in the PDF document:

public Form2()
{
    InitializeComponent();

    var fontDataArialBold = File.ReadAllBytes(@"C:\Windows\Fonts\arialbd.ttf");
    FontsRepository.RegisterFont(new System.Windows.Media.FontFamily("ArialBold"), FontStyles.Normal, FontWeights.Normal, fontDataArialBold);

    var fontDataArialBoldItalic = File.ReadAllBytes(@"C:\Windows\Fonts\arialbi.ttf");
    FontsRepository.RegisterFont(new System.Windows.Media.FontFamily("ArialBoldItalic"), FontStyles.Normal, FontWeights.Normal, fontDataArialBoldItalic);

    var fontDataArialItalic = File.ReadAllBytes(@"C:\Windows\Fonts\ariali.ttf");
    FontsRepository.RegisterFont(new System.Windows.Media.FontFamily("ArialItalic"), FontStyles.Normal, FontWeights.Normal, fontDataArialItalic);
}

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.