First successful rewritten cmap table

This commit is contained in:
John Whitington 2023-06-29 13:53:04 +01:00
parent bc3c94db56
commit af3904ff7d
1 changed files with 2 additions and 0 deletions

View File

@ -473,6 +473,8 @@ let subset_font major minor tables indexToLocFormat subset encoding cmap loca mk
write_loca_table subset cmap indexToLocFormat bs loca write_loca_table subset cmap indexToLocFormat bs loca
else if string_of_tag tag = "glyf" && subset <> [] then else if string_of_tag tag = "glyf" && subset <> [] then
ignore (write_glyf_table subset cmap bs mk_b glyfoffset loca) ignore (write_glyf_table subset cmap bs mk_b glyfoffset loca)
else if string_of_tag tag = "cmap" && subset <> [] then
ignore (write_cmap_table subset cmap bs)
else else
match findtag tag with match findtag tag with
| (og_off, Some len) -> | (og_off, Some len) ->