Erster Commit: nativer Linux-Port aus macOS-Bytecode
Läuft die Voice Acoustic VA-Remotecontrol (AllDSP AllControl) nativ unter Linux auf echtem wxGTK 3.0 — ohne Wine und ohne dekompilierten App-Code. Ausgeführt wird das unveränderte Python-2.7-Bytecode aus dem macOS-.app; C-Extensions (wxGTK/numpy/ scipy/PortAudio) kommen nativ aus Debian stretch. Enthält: va/ (Original-.pyc + pure-Python-Libs + Assets + launch.py mit den drei Linux-Fixes), Dockerfile/run.sh/entrypoint.sh, reference/ (dekompilierter Quellcode zum Debuggen) und README/STATUS. img.cache (378 MB, regenerierbar) ist per .gitignore ausgeschlossen. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
# try all ttf fonts
|
||||
|
||||
from fpdf import FPDF
|
||||
import fpdf
|
||||
import sys
|
||||
import os
|
||||
import time
|
||||
|
||||
pdf = FPDF()
|
||||
pdf.add_page()
|
||||
|
||||
#font_dir = fpdf.FPDF_FONT_DIR
|
||||
font_dir = '../fpdf/font'
|
||||
|
||||
txt = open('HelloWorld.txt').read()
|
||||
|
||||
# Add a Unicode font (uses UTF-8)
|
||||
for font in os.listdir(font_dir):
|
||||
if font.lower().endswith('.ttf'):
|
||||
fontpath = os.path.join(font_dir, font)
|
||||
print(fontpath)
|
||||
t0 = time.time()
|
||||
pdf.add_font(font,'', fontpath, uni=True)
|
||||
t1 = time.time()
|
||||
pdf.set_font(font,'',14)
|
||||
t2 = time.time()
|
||||
pdf.write(8, font)
|
||||
pdf.ln()
|
||||
pdf.write(8, txt)
|
||||
pdf.ln()
|
||||
t3 = time.time()
|
||||
print("ttf loading time", t1-t0)
|
||||
print("ttf total time", t3-t0)
|
||||
print()
|
||||
|
||||
fn = 'unifonts.pdf'
|
||||
pdf.output(fn,'F')
|
||||
import os
|
||||
try:
|
||||
os.startfile(fn)
|
||||
except:
|
||||
os.system("xdg-open \"%s\"" % fn)
|
||||
Reference in New Issue
Block a user