Add build, deploy and test sources

This commit is contained in:
Paravis committed 2026-11-13 07:52:37 +03:00
1 parent b962581812
commit 3d1a08f230
259 files changed
+15273

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
#!/bin/bash
F=/path/to/pf/PSD/fonts/Montserrat-SemiBold.ttf
echo "=== сигнатура:"
xxd -l 16 "$F"
pip install --quiet fonttools brotli >/dev/null 2>&1
python3 - <<'EOF'
from fontTools.ttLib import TTFont
import os
src = '/path/to/pf/PSD/fonts/Montserrat-SemiBold.ttf'
with open(src, 'rb') as fh:
sig = fh.read(4)
print('sig:', sig)
dst = '/path/to/pf/PSD/fonts/Montserrat-SemiBold.ttf'
if sig in (b'wOFF', b'wOF2'):
f = TTFont(src)
f.flavor = None
out = '/path/to/pf/PSD/fonts/Montserrat-SemiBold.ttf'
f.save(out)
print('converted ->', out, os.path.getsize(out), 'bytes')
elif sig in (b'\x00\x01\x00\x00', b'true', b'OTTO'):
print('already ttf/otf')
else:
print('unknown')
EOF
ls -l /path/to/pf/PSD/fonts/