Merge pull request #4 from khaledhosny/master

Fix build
pull/5/head
Behdad Esfahbod 2015-06-19 13:16:14 -07:00
commit 76da1e514d
11 changed files with 21 additions and 20 deletions

View File

@ -18,7 +18,7 @@ font: $(EMOJI).ttf
CFLAGS = -std=c99 -Wall -Wextra `pkg-config --cflags --libs cairo` CFLAGS = -std=c99 -Wall -Wextra `pkg-config --cflags --libs cairo`
LDFLAGS = `pkg-config --libs cairo` LDFLAGS = `pkg-config --libs cairo`
PNGQUANTDIR := $(abspath `pwd`/../../third_party/pngquant) PNGQUANTDIR := $(abspath `pwd`/../third_party/pngquant)
PNGQUANT := $(PNGQUANTDIR)/pngquant PNGQUANT := $(PNGQUANTDIR)/pngquant
PNGQUANTFLAGS = --speed 1 --skip-if-larger --ext '.png' --force PNGQUANTFLAGS = --speed 1 --skip-if-larger --ext '.png' --force
@ -55,7 +55,7 @@ FLAGS = AD AE AF AG AI AL AM AO AR AS AT AU AW AX AZ \
YE \ YE \
ZA ZM ZW ZA ZM ZW
FLAGS_SRC_DIR = ../third_party/region-flags/png FLAGS_SRC_DIR = third_party/region-flags/png
FLAGS_DIR = ./flags FLAGS_DIR = ./flags
glyph_name = $(shell ./flag_glyph_name.py $(flag)) glyph_name = $(shell ./flag_glyph_name.py $(flag))
@ -76,9 +76,9 @@ $(PNG128_FLAGS): flag-symlinks
EMOJI_PNG128 = ./png/128/emoji_u EMOJI_PNG128 = ./png/128/emoji_u
EMOJI_BUILDER = ../third_party/color_emoji/emoji_builder.py EMOJI_BUILDER = third_party/color_emoji/emoji_builder.py
ADD_GLYPHS = ../third_party/color_emoji/add_glyphs.py ADD_GLYPHS = third_party/color_emoji/add_glyphs.py
PUA_ADDER = ../nototools/map_pua_emoji.py PUA_ADDER = map_pua_emoji.py
%.ttx: %.ttx.tmpl $(ADD_GLYPHS) $(UNI) flag-symlinks %.ttx: %.ttx.tmpl $(ADD_GLYPHS) $(UNI) flag-symlinks
python $(ADD_GLYPHS) "$<" "$@" "$(EMOJI_PNG128)" python $(ADD_GLYPHS) "$<" "$@" "$(EMOJI_PNG128)"

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python
# #
# Copyright 2014 Google Inc. All rights reserved. # Copyright 2014 Google Inc. All rights reserved.
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python
# Copyright 2015 Google, Inc. All Rights Reserved. # Copyright 2015 Google, Inc. All Rights Reserved.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
@ -33,8 +33,8 @@ from fontTools.ttLib.tables import otTables
from fontTools.ttLib.tables import _g_l_y_f from fontTools.ttLib.tables import _g_l_y_f
from fontTools.ttLib.tables import S_V_G_ as SVG from fontTools.ttLib.tables import S_V_G_ as SVG
from fontTools import ttx from fontTools import ttx
from nototools import add_emoji_gsub
import add_emoji_gsub
import svg_builder import svg_builder
import svg_cleaner import svg_cleaner

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python
# Copyright 2015 Google, Inc. All Rights Reserved. # Copyright 2015 Google, Inc. All Rights Reserved.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python
# #
# Copyright 2014 Google Inc. All rights reserved. # Copyright 2014 Google Inc. All rights reserved.
# #
@ -20,7 +20,7 @@ __author__ = 'roozbeh@google.com (Roozbeh Pournader)'
import sys import sys
from nototools import add_emoji_gsub import add_emoji_gsub
def two_letter_code_to_glyph_name(iso_code): def two_letter_code_to_glyph_name(iso_code):
return 'u%04x_%04x' % ( return 'u%04x_%04x' % (

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python
# Copyright 2015 Google, Inc. All Rights Reserved. # Copyright 2015 Google, Inc. All Rights Reserved.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python
# #
# Copyright 2014 Google Inc. All rights reserved. # Copyright 2014 Google Inc. All rights reserved.
# #
@ -22,9 +22,10 @@ import sys
from fontTools import ttLib from fontTools import ttLib
from nototools import add_emoji_gsub
from nototools import font_data from nototools import font_data
import add_emoji_gsub
def get_glyph_name_from_gsub(char_seq, font): def get_glyph_name_from_gsub(char_seq, font):
"""Find the glyph name for ligature of a given character sequence from GSUB. """Find the glyph name for ligature of a given character sequence from GSUB.

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python
# Copyright 2015 Google, Inc. All Rights Reserved. # Copyright 2015 Google, Inc. All Rights Reserved.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");

View File

@ -1,12 +1,12 @@
#!/usr/bin/python #!/usr/bin/env python
import glob, sys import glob, sys
from fontTools import ttx from fontTools import ttx
from fontTools.ttLib.tables import otTables from fontTools.ttLib.tables import otTables
from png import PNG from png import PNG
sys.path.append('../../nototools') sys.path.append('../../')
from nototools import add_emoji_gsub import add_emoji_gsub
def glyph_name(string): def glyph_name(string):

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python
# #
# Copyright 2013 Google, Inc. All Rights Reserved. # Copyright 2013 Google, Inc. All Rights Reserved.
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python
# #
# Copyright 2013 Google, Inc. All Rights Reserved. # Copyright 2013 Google, Inc. All Rights Reserved.
# #