diff --git a/ppl2psd.py b/ppl2psd.py index 5a5c216..3b5a58a 100644 --- a/ppl2psd.py +++ b/ppl2psd.py @@ -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)]