updated inline github issue URLs
This commit is contained in:
parent
a72088b65e
commit
723e7a1d3c
@ -1,5 +1,5 @@
|
|||||||
"""Extend the Python codecs module with a few encodings that are used in OpenType (name table)
|
"""Extend the Python codecs module with a few encodings that are used in OpenType (name table)
|
||||||
but missing from Python. See https://github.com/behdad/fonttools/issues/236 for details."""
|
but missing from Python. See https://github.com/fonttools/fonttools/issues/236 for details."""
|
||||||
|
|
||||||
from __future__ import print_function, division, absolute_import
|
from __future__ import print_function, division, absolute_import
|
||||||
from fontTools.misc.py23 import *
|
from fontTools.misc.py23 import *
|
||||||
|
@ -545,7 +545,7 @@ class Builder(object):
|
|||||||
required_feature_indices = {} # ('latn', 'DEU') --> 23
|
required_feature_indices = {} # ('latn', 'DEU') --> 23
|
||||||
scripts = {} # 'latn' --> {'DEU': [23, 24]} for feature #23,24
|
scripts = {} # 'latn' --> {'DEU': [23, 24]} for feature #23,24
|
||||||
# Sort the feature table by feature tag:
|
# Sort the feature table by feature tag:
|
||||||
# https://github.com/behdad/fonttools/issues/568
|
# https://github.com/fonttools/fonttools/issues/568
|
||||||
sortFeatureTag = lambda f: (f[0][2], f[0][1], f[0][0], f[1])
|
sortFeatureTag = lambda f: (f[0][2], f[0][1], f[0][0], f[1])
|
||||||
for key, lookups in sorted(self.features_.items(), key=sortFeatureTag):
|
for key, lookups in sorted(self.features_.items(), key=sortFeatureTag):
|
||||||
script, lang, feature_tag = key
|
script, lang, feature_tag = key
|
||||||
@ -919,7 +919,7 @@ class Builder(object):
|
|||||||
lookup.mapping[from_glyph] = to_glyph
|
lookup.mapping[from_glyph] = to_glyph
|
||||||
|
|
||||||
def add_single_subst_chained_(self, location, prefix, suffix, mapping):
|
def add_single_subst_chained_(self, location, prefix, suffix, mapping):
|
||||||
# https://github.com/behdad/fonttools/issues/512
|
# https://github.com/fonttools/fonttools/issues/512
|
||||||
chain = self.get_lookup_(location, ChainContextSubstBuilder)
|
chain = self.get_lookup_(location, ChainContextSubstBuilder)
|
||||||
sub = chain.find_chainable_single_subst(set(mapping.keys()))
|
sub = chain.find_chainable_single_subst(set(mapping.keys()))
|
||||||
if sub is None:
|
if sub is None:
|
||||||
|
@ -18,7 +18,7 @@ _encodingMap = {
|
|||||||
},
|
},
|
||||||
1: { # Macintosh
|
1: { # Macintosh
|
||||||
# See
|
# See
|
||||||
# https://github.com/behdad/fonttools/issues/236
|
# https://github.com/fonttools/fonttools/issues/236
|
||||||
0: { # Macintosh, platEncID==0, keyed by langID
|
0: { # Macintosh, platEncID==0, keyed by langID
|
||||||
15: "mac_iceland",
|
15: "mac_iceland",
|
||||||
17: "mac_turkish",
|
17: "mac_turkish",
|
||||||
|
@ -31,7 +31,7 @@ def asctime(t=None):
|
|||||||
In Python 3.x, the day of the month is right-justified, whereas on Windows
|
In Python 3.x, the day of the month is right-justified, whereas on Windows
|
||||||
Python 2.7 it is padded with zeros.
|
Python 2.7 it is padded with zeros.
|
||||||
|
|
||||||
See https://github.com/behdad/fonttools/issues/455
|
See https://github.com/fonttools/fonttools/issues/455
|
||||||
"""
|
"""
|
||||||
if t is None:
|
if t is None:
|
||||||
t = time.localtime()
|
t = time.localtime()
|
||||||
|
@ -266,7 +266,7 @@ Font naming options:
|
|||||||
--name-legacy
|
--name-legacy
|
||||||
Keep legacy (non-Unicode) 'name' table entries (0.x, 1.x etc.).
|
Keep legacy (non-Unicode) 'name' table entries (0.x, 1.x etc.).
|
||||||
XXX Note: This might be needed for some fonts that have no Unicode name
|
XXX Note: This might be needed for some fonts that have no Unicode name
|
||||||
entires for English. See: https://github.com/behdad/fonttools/issues/146
|
entires for English. See: https://github.com/fonttools/fonttools/issues/146
|
||||||
--no-name-legacy
|
--no-name-legacy
|
||||||
Drop legacy (non-Unicode) 'name' table entries [default]
|
Drop legacy (non-Unicode) 'name' table entries [default]
|
||||||
--name-languages[+|-]=<langID>[,<langID>]
|
--name-languages[+|-]=<langID>[,<langID>]
|
||||||
@ -1425,7 +1425,7 @@ def subset_glyphs(self, s):
|
|||||||
@_add_method(ttLib.getTableClass('GSUB'),
|
@_add_method(ttLib.getTableClass('GSUB'),
|
||||||
ttLib.getTableClass('GPOS'))
|
ttLib.getTableClass('GPOS'))
|
||||||
def retain_empty_scripts(self):
|
def retain_empty_scripts(self):
|
||||||
# https://github.com/behdad/fonttools/issues/518
|
# https://github.com/fonttools/fonttools/issues/518
|
||||||
# https://bugzilla.mozilla.org/show_bug.cgi?id=1080739#c15
|
# https://bugzilla.mozilla.org/show_bug.cgi?id=1080739#c15
|
||||||
return self.__class__ == ttLib.getTableClass('GSUB')
|
return self.__class__ == ttLib.getTableClass('GSUB')
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ def prune_pre_subset(self, font, options):
|
|||||||
# Clear useless Encoding
|
# Clear useless Encoding
|
||||||
for fontname in cff.keys():
|
for fontname in cff.keys():
|
||||||
font = cff[fontname]
|
font = cff[fontname]
|
||||||
# https://github.com/behdad/fonttools/issues/620
|
# https://github.com/fonttools/fonttools/issues/620
|
||||||
font.Encoding = "StandardEncoding"
|
font.Encoding = "StandardEncoding"
|
||||||
|
|
||||||
return True # bool(cff.fontNames)
|
return True # bool(cff.fontNames)
|
||||||
|
@ -115,7 +115,7 @@ class table_E_B_L_C_(DefaultTable.DefaultTable):
|
|||||||
indexSubTable.indexFormat = indexFormat
|
indexSubTable.indexFormat = indexFormat
|
||||||
indexSubTable.imageFormat = imageFormat
|
indexSubTable.imageFormat = imageFormat
|
||||||
indexSubTable.imageDataOffset = imageDataOffset
|
indexSubTable.imageDataOffset = imageDataOffset
|
||||||
indexSubTable.decompile() # https://github.com/behdad/fonttools/issues/317
|
indexSubTable.decompile() # https://github.com/fonttools/fonttools/issues/317
|
||||||
curStrike.indexSubTables.append(indexSubTable)
|
curStrike.indexSubTables.append(indexSubTable)
|
||||||
|
|
||||||
def compile(self, ttFont):
|
def compile(self, ttFont):
|
||||||
|
@ -46,7 +46,7 @@ class table__h_e_a_d(DefaultTable.DefaultTable):
|
|||||||
# bogus values there. Since till 2038 those bytes only can be zero,
|
# bogus values there. Since till 2038 those bytes only can be zero,
|
||||||
# ignore them.
|
# ignore them.
|
||||||
#
|
#
|
||||||
# https://github.com/behdad/fonttools/issues/99#issuecomment-66776810
|
# https://github.com/fonttools/fonttools/issues/99#issuecomment-66776810
|
||||||
for stamp in 'created', 'modified':
|
for stamp in 'created', 'modified':
|
||||||
value = getattr(self, stamp)
|
value = getattr(self, stamp)
|
||||||
if value > 0xFFFFFFFF:
|
if value > 0xFFFFFFFF:
|
||||||
|
@ -303,7 +303,7 @@ class OTTableWriter(object):
|
|||||||
# Certain versions of Uniscribe reject the font if the GSUB/GPOS top-level
|
# Certain versions of Uniscribe reject the font if the GSUB/GPOS top-level
|
||||||
# arrays (ScriptList, FeatureList, LookupList) point to the same, possibly
|
# arrays (ScriptList, FeatureList, LookupList) point to the same, possibly
|
||||||
# empty, array. So, we don't share those.
|
# empty, array. So, we don't share those.
|
||||||
# See: https://github.com/behdad/fonttools/issues/518
|
# See: https://github.com/fonttools/fonttools/issues/518
|
||||||
dontShare = hasattr(self, 'DontShare')
|
dontShare = hasattr(self, 'DontShare')
|
||||||
|
|
||||||
if isExtension:
|
if isExtension:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user