mirror of https://github.com/zulip/zulip.git
emoji_dump: Move size constants to top of file.
This commit is contained in:
parent
d583710f7c
commit
a6fffe5120
|
@ -16,6 +16,10 @@ ZULIP_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), '../../../
|
|||
EMOJI_DUMP_DIR_PATH = os.path.join(ZULIP_PATH, 'var', 'emoji_dump')
|
||||
EMOJI_DUMP_PATH = lambda p: os.path.join(EMOJI_DUMP_DIR_PATH, p)
|
||||
|
||||
AA_SCALE = 8
|
||||
SIZE = (68, 68)
|
||||
BIG_SIZE = tuple([x * AA_SCALE for x in SIZE])
|
||||
|
||||
class MissingGlyphError(Exception):
|
||||
pass
|
||||
|
||||
|
@ -35,10 +39,6 @@ def color_font(code_point, code_point_to_fname_map):
|
|||
def bw_font(name, code_point):
|
||||
char = unichr(int(code_point, 16))
|
||||
|
||||
AA_SCALE = 8
|
||||
SIZE = (68, 68)
|
||||
BIG_SIZE = tuple([x * AA_SCALE for x in SIZE])
|
||||
|
||||
# AndroidEmoji.ttf is from
|
||||
# https://android.googlesource.com/platform/frameworks/base.git/+/master/data/fonts/AndroidEmoji.ttf
|
||||
# commit 07912f876c8639f811b06831465c14c4a3b17663
|
||||
|
|
Loading…
Reference in New Issue