Mark the environment variable as experimental
This commit is contained in:
parent
527179619b
commit
2ff3159a5f
@ -9,6 +9,9 @@ from fontTools.misc.intTools import bit_count, bit_indices
|
|||||||
from fontTools.ttLib import TTFont
|
from fontTools.ttLib import TTFont
|
||||||
from fontTools.ttLib.tables import otBase, otTables
|
from fontTools.ttLib.tables import otBase, otTables
|
||||||
|
|
||||||
|
# NOTE: activating this optimization via the environment variable is
|
||||||
|
# experimental and may not be supported once an alternative mechanism
|
||||||
|
# is in place. See: https://github.com/fonttools/fonttools/issues/2349
|
||||||
GPOS_COMPACT_MODE_ENV_KEY = "FONTTOOLS_GPOS_COMPACT_MODE"
|
GPOS_COMPACT_MODE_ENV_KEY = "FONTTOOLS_GPOS_COMPACT_MODE"
|
||||||
GPOS_COMPACT_MODE_DEFAULT = "0"
|
GPOS_COMPACT_MODE_DEFAULT = "0"
|
||||||
|
|
||||||
|
@ -163,6 +163,9 @@ def test_optimization_mode(
|
|||||||
|
|
||||||
env = {}
|
env = {}
|
||||||
if mode is not None:
|
if mode is not None:
|
||||||
|
# NOTE: activating this optimization via the environment variable is
|
||||||
|
# experimental and may not be supported once an alternative mechanism
|
||||||
|
# is in place. See: https://github.com/fonttools/fonttools/issues/2349
|
||||||
env["FONTTOOLS_GPOS_COMPACT_MODE"] = str(mode)
|
env["FONTTOOLS_GPOS_COMPACT_MODE"] = str(mode)
|
||||||
with set_env(**env):
|
with set_env(**env):
|
||||||
fb = FontBuilder(1000)
|
fb = FontBuilder(1000)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user