Sync DocumentResources font table with ResourceDict
PS checks both font tables; leaving DocumentResources.FontSet at the template font made PS flag every TypeLayer as needing conversion.
This commit is contained in:
1 parent
9ef308b469
commit
21df90209a
1 file changed
+3
@@ -544,6 +544,9 @@ def build_type_layer_tysh(ly: dict, font_ps: str) -> bytes:
|
||||
ssd["FauxBold"] = Bool(True)
|
||||
|
||||
res["FontSet"][0]["Name"] = String(font_ps)
|
||||
# DocumentResources mirrors ResourceDict; keep both font tables in sync
|
||||
# or PS flags the text layer as needing conversion.
|
||||
ed["DocumentResources"]["FontSet"][0]["Name"] = String(font_ps)
|
||||
|
||||
l, t, rr, bb2 = bounding_rect(ly)
|
||||
tysh.transform = [1.0, 0.0, 0.0, 1.0, float(l), float(t)]
|
||||
|
||||
Reference in new issue
Block a user