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,26 @@
|
||||
#!/usr/bin/env python3
|
||||
from psd_tools import PSDImage
|
||||
|
||||
psd = PSDImage.open('/path/to/pf/PSD/UEFI/x64/main/main.psd')
|
||||
names = set()
|
||||
for layer in psd.descendants():
|
||||
if layer.kind != 'type':
|
||||
continue
|
||||
try:
|
||||
rd = layer.resource_dict or {}
|
||||
for fs in rd.get('FontSet', []) or []:
|
||||
n = fs.get('Name') if hasattr(fs, 'get') else getattr(fs, 'Name', None)
|
||||
if n:
|
||||
names.add(n)
|
||||
except Exception as e:
|
||||
pass
|
||||
print('fonts in document:', sorted(names) or 'not found')
|
||||
|
||||
# fallback: raw resource block scan
|
||||
try:
|
||||
from psd_tools.constants import Resource
|
||||
for k, v in psd.image_resources.items():
|
||||
if 'Font' in str(k):
|
||||
print('resource', k, str(v)[:400])
|
||||
except Exception as e:
|
||||
print('image_resources:', e)
|
||||
Reference in new issue
Block a user