Add build, deploy and test sources
This commit is contained in:
1 parent
b962581812
commit
3d1a08f230
259 files changed
+15273
No files matched your search
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
python3 - <<'EOF'
|
||||
from psd_tools import PSDImage
|
||||
psd = PSDImage.open('/path/to/pf/PSD/main/main.psd')
|
||||
for layer in psd.descendants():
|
||||
if layer.kind == 'type' and layer.text and 'Kaspersky' in layer.text:
|
||||
eng = layer.engine_dict
|
||||
print('keys:', list(eng.keys()))
|
||||
fs = eng.get('FontSet')
|
||||
print('FontSet type:', type(fs), 'len:', len(fs) if fs else 0)
|
||||
if fs:
|
||||
for f in fs[:5]:
|
||||
print(' entry keys:', list(f.keys()))
|
||||
print(' ', {k: (v if not isinstance(v, list) else v[:6]) for k, v in f.items()})
|
||||
rd = eng.get('ResourceDict')
|
||||
print('ResourceDict keys:', list(rd.keys()) if rd else None)
|
||||
break
|
||||
EOF
|
||||
Reference in new issue
Block a user