separate CFF from TrueType in full font tests
This commit is contained in:
parent
ec30a8a9ac
commit
9328354a83
|
@ -0,0 +1,18 @@
|
||||||
|
FONTS:
|
||||||
|
SourceSansPro-Regular.otf
|
||||||
|
|
||||||
|
PROFILES:
|
||||||
|
default.txt
|
||||||
|
drop-hints.txt
|
||||||
|
drop-hints-retain-gids.txt
|
||||||
|
retain-gids.txt
|
||||||
|
desubroutinize.txt
|
||||||
|
desubroutinize-retain-gids.txt
|
||||||
|
drop-hints-desubroutinize.txt
|
||||||
|
drop-hints-desubroutinize-retain-gids.txt
|
||||||
|
|
||||||
|
SUBSETS:
|
||||||
|
abc
|
||||||
|
Ǽ!A bc
|
||||||
|
×ØÙÚÞ
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
FONTS:
|
||||||
|
SourceHanSans-Regular.otf
|
||||||
|
|
||||||
|
PROFILES:
|
||||||
|
default.txt
|
||||||
|
drop-hints.txt
|
||||||
|
drop-hints-retain-gids.txt
|
||||||
|
retain-gids.txt
|
||||||
|
desubroutinize.txt
|
||||||
|
desubroutinize-retain-gids.txt
|
||||||
|
drop-hints-desubroutinize.txt
|
||||||
|
drop-hints-desubroutinize-retain-gids.txt
|
||||||
|
|
||||||
|
SUBSETS:
|
||||||
|
明
|
||||||
|
acek
|
||||||
|
明極珠度輸清
|
||||||
|
あいうえおか
|
||||||
|
あいう珠度輸
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,9 @@
|
||||||
FONTS:
|
FONTS:
|
||||||
Roboto-Regular.ttf
|
Roboto-Regular.ttf
|
||||||
SourceSansPro-Regular.otf
|
|
||||||
|
|
||||||
PROFILES:
|
PROFILES:
|
||||||
default.txt
|
default.txt
|
||||||
drop-hints.txt
|
drop-hints.txt
|
||||||
drop-hints-retain-gids.txt
|
|
||||||
retain-gids.txt
|
|
||||||
desubroutinize.txt
|
|
||||||
desubroutinize-retain-gids.txt
|
|
||||||
drop-hints-desubroutinize.txt
|
|
||||||
drop-hints-desubroutinize-retain-gids.txt
|
|
||||||
|
|
||||||
SUBSETS:
|
SUBSETS:
|
||||||
abc
|
abc
|
||||||
|
|
|
@ -1,16 +1,9 @@
|
||||||
FONTS:
|
FONTS:
|
||||||
Mplus1p-Regular.ttf
|
Mplus1p-Regular.ttf
|
||||||
SourceHanSans-Regular.otf
|
|
||||||
|
|
||||||
PROFILES:
|
PROFILES:
|
||||||
default.txt
|
default.txt
|
||||||
drop-hints.txt
|
drop-hints.txt
|
||||||
drop-hints-retain-gids.txt
|
|
||||||
retain-gids.txt
|
|
||||||
desubroutinize.txt
|
|
||||||
desubroutinize-retain-gids.txt
|
|
||||||
drop-hints-desubroutinize.txt
|
|
||||||
drop-hints-desubroutinize-retain-gids.txt
|
|
||||||
|
|
||||||
SUBSETS:
|
SUBSETS:
|
||||||
明
|
明
|
||||||
|
|
|
@ -33,9 +33,6 @@ class Test:
|
||||||
font_base_name_parts = os.path.splitext(font_base_name)
|
font_base_name_parts = os.path.splitext(font_base_name)
|
||||||
return font_base_name_parts[1]
|
return font_base_name_parts[1]
|
||||||
|
|
||||||
def applicable(self):
|
|
||||||
return self.profile_path.find("desubroutinize") < 0 and self.profile_path.find("retain-gids") < 0 or self.get_font_extension() == ".otf"
|
|
||||||
|
|
||||||
# A group of tests to perform on the subsetter. Each test
|
# A group of tests to perform on the subsetter. Each test
|
||||||
# Identifies a font a subsetting profile, and a subset to be cut.
|
# Identifies a font a subsetting profile, and a subset to be cut.
|
||||||
class SubsetTestSuite:
|
class SubsetTestSuite:
|
||||||
|
@ -65,9 +62,7 @@ class SubsetTestSuite:
|
||||||
for profile in self.profiles:
|
for profile in self.profiles:
|
||||||
profile = os.path.join(self._base_path(), "profiles", profile)
|
profile = os.path.join(self._base_path(), "profiles", profile)
|
||||||
for subset in self.subsets:
|
for subset in self.subsets:
|
||||||
test = Test(font, profile, subset)
|
yield Test(font, profile, subset)
|
||||||
if test.applicable():
|
|
||||||
yield test
|
|
||||||
|
|
||||||
def _base_path(self):
|
def _base_path(self):
|
||||||
return os.path.dirname(os.path.dirname(self.test_path))
|
return os.path.dirname(os.path.dirname(self.test_path))
|
||||||
|
|
Loading…
Reference in New Issue