Last Updated: 05 Jan 2021 11:57 by ADMIN
Created on: 09 Sep 2019 17:18
Category: PdfProcessing
Type: Bug Report
PdfProcessing: CharCodes to glyph indices are incorrectly mapped when exporting TextBoxField with TrueType font and defined encoding

When a TrueType font is defined, the mapping of character codes to glyph indices depends on the built-in cmap table mappings defined in the font and the Encoding property defined in the PDF dictionary.

However, the current implementation maps all characters with cmap tables for Microsoft Symbolic and Macintosh Roman, which causes incorrect mapping results, e.g. space characters are mapped to an Ê glyph.

The issue is also described in the following public item: TryGetCharCode for OpenTypeFont uses wrong cmap and returns wrong charcode.

Workaround: Change the font  of the TextBoxField's widget appearance:
foreach (var widget in field.Widgets)
    widget.TextProperties.Font = FontsRepository.Helvetica;

Posted on: 05 Jan 2021 11:57

Hi Fadi,

Thank you for the feedback.

This bug has a very high priority in our backlog and has a pretty good chance to be fixed during the forthcoming release. However, I cannot engage with a specific date for its development. Meanwhile, make sure you are following the item so you can receive updates when its status changes.

Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Posted on: 04 Jan 2021 15:59

Bit of a show stopper for us unfortunately since we use different fonts on the form. This change obliterates those, such as script fonts for signatures.

Posted on: 17 Sep 2020 10:24

Hello Neil,

Until this bug is fixed I would suggest avoiding using TrueType fonts with a defined encoding when the document contains TextBoxField. Please, make sure you are following this item in order to receive an update when its status changes.

Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive , special prizes and more, for FREE?! Register now for DevReach 2.0(20).

Neil N
Posted on: 16 Sep 2020 19:48
Does this bug mean that clients cannot use the fonts they want to when creating a PDF form?