Skip to content

Commit

Permalink
Arabic Text Marker replace by Zero Width Space, metanorma/isodoc#354
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Dec 13, 2021
1 parent 313fd7b commit e164b62
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/org/apache/fop/fonts/MultiByteFont.java
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,13 @@ private GlyphSequence mapCharsToGlyphs(CharSequence cs, List associations) {
}
notifyMapOperation();
gi = findGlyphIndex(cc);

if (gi == SingleByteEncoding.NOT_FOUND_CODE_POINT && cc == 0x061C) { // ARABIC LETTER MARK
//replace to ZERO-WIDTH SPACE
cc = 0x200B;
gi = findGlyphIndex(cc);
}

if (gi == SingleByteEncoding.NOT_FOUND_CODE_POINT) {
warnMissingGlyph((char) cc);
gi = giMissing;
Expand Down

0 comments on commit e164b62

Please sign in to comment.