From 21df90209a6f523183b5b33c57c4a28c8c82fbde Mon Sep 17 00:00:00 2001 From: AskaEth Date: Thu, 27 Aug 2026 16:07:37 +0800 Subject: [PATCH] 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. --- ppl2psd.py | 3 +++ 1 file changed, 3 insertions(+) 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)]