Remove vestigial 'font' and 'name' properties

This commit is contained in:
Jeremy Singer-Vine
2023-07-14 12:01:28 -04:00
parent 97ca4b0bf3
commit 6d62054ffa
2 changed files with 3 additions and 5 deletions
-2
View File
@@ -51,9 +51,7 @@ ALL_ATTRS = set(
"bits", "bits",
"matrix", "matrix",
"upright", "upright",
"font",
"fontname", "fontname",
"name",
"text", "text",
"imagemask", "imagemask",
"colorspace", "colorspace",
+3 -3
View File
@@ -70,7 +70,7 @@ class Test(unittest.TestCase):
assert c.split("\r\n")[9] == ( assert c.split("\r\n")[9] == (
"char,1,45.83,58.826,656.82,674.82,117.18,117.18,135.18,12.996," "char,1,45.83,58.826,656.82,674.82,117.18,117.18,135.18,12.996,"
'18.0,12.996,,,,,,TimesNewRomanPSMT,,,"(1, 0, 0, 1, 45.83, 660.69)"' '18.0,12.996,,,,,,TimesNewRomanPSMT,,,"(1, 0, 0, 1, 45.83, 660.69)"'
',,DeviceRGB,"(0, 0, 0)",,,18.0,,,,,,Y,,1,' ',DeviceRGB,"(0, 0, 0)",,,18.0,,,,,,Y,,1,'
) )
io = StringIO() io = StringIO()
@@ -125,7 +125,7 @@ class Test(unittest.TestCase):
assert res.decode("utf-8").split("\r\n")[9] == ( assert res.decode("utf-8").split("\r\n")[9] == (
"char,1,45.83,58.826,656.82,674.82,117.18,117.18,135.18,12.996," "char,1,45.83,58.826,656.82,674.82,117.18,117.18,135.18,12.996,"
'18.0,12.996,,,,,,TimesNewRomanPSMT,,,"(1, 0, 0, 1, 45.83, 660.69)"' '18.0,12.996,,,,,,TimesNewRomanPSMT,,,"(1, 0, 0, 1, 45.83, 660.69)"'
',,DeviceRGB,"(0, 0, 0)",,,18.0,,,,,,Y,,1,' ',DeviceRGB,"(0, 0, 0)",,,18.0,,,,,,Y,,1,'
) )
def test_cli_csv_exclude(self): def test_cli_csv_exclude(self):
@@ -149,7 +149,7 @@ class Test(unittest.TestCase):
assert res.decode("utf-8").split("\r\n")[9] == ( assert res.decode("utf-8").split("\r\n")[9] == (
"char,1,45.83,58.826,656.82,674.82,117.18,117.18,135.18,12.996," "char,1,45.83,58.826,656.82,674.82,117.18,117.18,135.18,12.996,"
"18.0,12.996,,,,,,TimesNewRomanPSMT,," "18.0,12.996,,,,,,TimesNewRomanPSMT,"
',,"(0, 0, 0)",,18.0,,,,,Y,,1,' ',,"(0, 0, 0)",,18.0,,,,,Y,,1,'
) )