forked from 1b-agent/opencadstudio-upstream
Follow-up cleanups on the merged TTF-fill work: - Drop the unconditional resolve_text_style log line — it fired for every text style and spammed ~7k stderr lines opening a single real drawing. - Drop the per-glyph tessellation-error eprintln; a malformed font would otherwise log once per character. The glyph still falls back silently. - Tessellate glyph fills with the nonzero winding rule (lyon defaults to even-odd, which mis-fills TrueType outlines whose contours overlap). - Make the sysfont prefix fallback deterministic (sorted) and require ≥3 chars so a 1–2 letter request can't grab an arbitrary family. - Remove the unrelated windows-gnu --exclude-all-symbols linker flag that slipped into .cargo/config.toml. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
7 lines
386 B
TOML
7 lines
386 B
TOML
# getrandom 0.3 (pulled by ahash via acadrust) needs this cfg to select its
|
|
# browser backend on wasm32-unknown-unknown, alongside its `wasm_js` feature
|
|
# (enabled in Cargo.toml for the wasm target). Without it the web build fails
|
|
# with "wasm32-unknown-unknown targets are not supported by default".
|
|
[target.wasm32-unknown-unknown]
|
|
rustflags = ['--cfg', 'getrandom_backend="wasm_js"']
|