mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Don't map glyphs to Unicode position 0x0E33, i.e. Thai character SARA AM (bug1046314)
*A similar approach as in PR 5705.* Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1046314. According to https://dxr.mozilla.org/mozilla-central/source/gfx/harfbuzz/src/hb-ot-shape-complex-thai.cc#270-365, `0x0E33` is treated as a special case (by the font shaping code in Firefox). Hence it seems reasonable to skip it when adjusting the font mapping.
This commit is contained in:
parent
185067e0cf
commit
2b1a13ba28
4 changed files with 9 additions and 0 deletions
|
@ -2698,6 +2698,7 @@ var Font = (function FontClosure() {
|
|||
fontCharCode === 0x7F || // Control char
|
||||
fontCharCode === 0xAD || // Soft hyphen
|
||||
fontCharCode === 0xA0 || // Non breaking space
|
||||
fontCharCode === 0x0E33 || // Thai character SARA AM
|
||||
fontCharCode === 0x25CC || // Dotted circle (combining mark)
|
||||
(fontCharCode >= 0x80 && fontCharCode <= 0x9F) || // Control chars
|
||||
// Prevent drawing characters in the specials unicode block.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue