Skip to content

Commit 3bc9dd7

Browse files
committed
Do not map 0xFFFF in the cmap table
From the TrueType font specification section about the cmap table: > No character code should be mapped to glyph index -1 (0xFFFF), which is a special value reserved in processing to indicate the position of a glyph deleted from the glyph stream. ref #123
1 parent 0deb407 commit 3bc9dd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FontLib/Table/Type/cmap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ function _encode() {
196196
$prevGid = $gid;
197197
}
198198

199-
$segments[][] = array(0xFFFF, 0xFFFF);
199+
$segments[][] = array(0xFFFF, null);
200200

201201
$startCode = array();
202202
$endCode = array();

0 commit comments

Comments
 (0)