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>
20 lines
553 B
Python
20 lines
553 B
Python
#!/usr/bin/env python
|
|
# -*- coding: latin1 -*-
|
|
|
|
"Basic test to reproduce issue 63: warning in unicode get_char_width"
|
|
|
|
from fpdf import FPDF
|
|
pdf = FPDF()
|
|
pdf.set_font('Arial','',14)
|
|
s = 'Texto largo que no cabe en esta celda pero que será ajustado'
|
|
w = pdf.get_string_width(s)
|
|
print (s, w)
|
|
assert round(w, 2) == 135.90
|
|
pdf.add_font('DejaVu', '', './font/DejaVuSans.ttf', uni=True)
|
|
pdf.set_font('DejaVu', '', 14)
|
|
s = u'Texto largo que no cabe en esta celda pero que será ajustado'
|
|
w = pdf.get_string_width(s)
|
|
print (s, w)
|
|
assert round(w, 2) == 153.64
|
|
|