Skip to content

Commit 433a4fe

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 1b977ef commit 433a4fe

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
@@ -202,7 +202,7 @@ function _encode() {
202202
$prevGid = $gid;
203203
}
204204

205-
$segments[][] = array(0xFFFF, 0xFFFF);
205+
$segments[][] = array(0xFFFF, null);
206206

207207
$startCode = array();
208208
$endCode = array();

0 commit comments

Comments
 (0)