mirror of
https://github.com/googlefonts/noto-emoji.git
synced 2025-06-13 01:57:59 +00:00
Merge pull request #48 from dougfelt/master
Fix some android emoji issues.
This commit is contained in:
commit
9aed6b2046
2 changed files with 9 additions and 2 deletions
4
third_party/color_emoji/add_glyphs.py
vendored
4
third_party/color_emoji/add_glyphs.py
vendored
|
@ -85,9 +85,9 @@ EXTRA_SEQUENCES = {
|
||||||
# Flag aliases - from: to
|
# Flag aliases - from: to
|
||||||
FLAG_ALIASES = {
|
FLAG_ALIASES = {
|
||||||
'BV': 'NO',
|
'BV': 'NO',
|
||||||
'SJ': 'NO',
|
'CP': 'FR',
|
||||||
'UM': 'FR',
|
|
||||||
'HM': 'AU',
|
'HM': 'AU',
|
||||||
|
'SJ': 'NO',
|
||||||
'UM': 'US',
|
'UM': 'US',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
7
third_party/color_emoji/emoji_builder.py
vendored
7
third_party/color_emoji/emoji_builder.py
vendored
|
@ -23,6 +23,8 @@ from png import PNG
|
||||||
import os
|
import os
|
||||||
from os import path
|
from os import path
|
||||||
|
|
||||||
|
from nototools import font_data
|
||||||
|
|
||||||
def get_glyph_name_from_gsub (string, font, cmap_dict):
|
def get_glyph_name_from_gsub (string, font, cmap_dict):
|
||||||
ligatures = font['GSUB'].table.LookupList.Lookup[0].SubTable[0].ligatures
|
ligatures = font['GSUB'].table.LookupList.Lookup[0].SubTable[0].ligatures
|
||||||
first_glyph = cmap_dict[ord (string[0])]
|
first_glyph = cmap_dict[ord (string[0])]
|
||||||
|
@ -527,6 +529,11 @@ By default they are dropped.
|
||||||
drop_outline_tables (font)
|
drop_outline_tables (font)
|
||||||
print "Dropped outline ('glyf', 'CFF ') and related tables."
|
print "Dropped outline ('glyf', 'CFF ') and related tables."
|
||||||
|
|
||||||
|
# hack removal of cmap pua entry for unknown flag glyph. If we try to
|
||||||
|
# remove it earlier, getGlyphID dies. Need to restructure all of this
|
||||||
|
# code.
|
||||||
|
font_data.delete_from_cmap(font, [0xfe82b])
|
||||||
|
|
||||||
font.save (out_file)
|
font.save (out_file)
|
||||||
print "Output font '%s' generated." % out_file
|
print "Output font '%s' generated." % out_file
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue