Skip to content

text-freetype2: rebuild file text after antialiasing toggle (#484) - #712

Closed
zackees wants to merge 2 commits into
masterfrom
fix/484-freetype-antialias
Closed

zackees wants to merge 2 commits into
masterfrom
fix/484-freetype-antialias

Conversation

@zackees

@zackees zackees commented Oct 14, 2026

Copy link
Copy Markdown
Member

Fixes #484

Reuses chriscoveries' RED test and fix from https://github.com/chriscoveries/obsrust-fork/tree/fix/text-freetype-aa-file-glyphs (cherry-picked onto current master, authorship preserved; thanks @chriscoveries).

  • RED commit e084cea: test_text_aa_file (real ft2 source callbacks, bundled fixture font). rust/tools/linux-validate/run.sh [OFF]: both cases fail (unchanged_file_glyphs_survive_aa: glyph cache NULL after toggling AA; unchanged_file_vertices_follow_aa: 1 != 2, vertex buffer not rebuilt).
  • GREEN commit: set vbuf_needs_update = true when antialiasing changes, so file text is re-cached. run.sh OFF and ON: 201/201 pass, exported symbols IDENTICAL (1766). ./lint ok; local-gate passed and stamped.

Local-Gate: v1 tree=cc47816468b0d87b1cb65244876d708a272a4bb2 secs=370 lanes=lint:run,rust-test:run,cross:run,tier2-linux:run
Ci-Attestation: {"at":1791965658,"gate":"rust/all/fmt","host":"linux-x86_64","key":"441eec85271fda5930a1c1b07214bb2c796c25fe630be4f5562520030719b389","lane":"lint","parents":["e084cea04cd131623996f307899d6858d0d0ef41"],"secs":25,"stamp":"a21d038e7ab60265e6206dee9f934451","tree":"cc47816468b0d87b1cb65244876d708a272a4bb2","v":1,"via":"run"}
Ci-Attestation: {"at":1791965658,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"441eec85271fda5930a1c1b07214bb2c796c25fe630be4f5562520030719b389","lane":"lint","parents":["e084cea04cd131623996f307899d6858d0d0ef41"],"secs":25,"stamp":"9f521123f3648d15b6fe91f64b6bb670","tree":"cc47816468b0d87b1cb65244876d708a272a4bb2","v":1,"via":"run"}
Ci-Attestation: {"at":1791965658,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"6e384080423942d82dc9fc646a7816f81541a622bafab33e7f8548ffe0f0b1de","lane":"rust-test","parents":["e084cea04cd131623996f307899d6858d0d0ef41"],"secs":96,"stamp":"b0f025bedc68f70141c081a4a1e2cccd","tree":"cc47816468b0d87b1cb65244876d708a272a4bb2","v":1,"via":"run"}
Ci-Attestation: {"at":1791965659,"gate":"rust/x86_64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"f85a2bf589d69f317f5a311b704801569f9050f47ea534d783254fe16788a0a8","lane":"cross","parents":["e084cea04cd131623996f307899d6858d0d0ef41"],"secs":77,"stamp":"fa8ea590261b58f9c817863a8800a29d","tree":"cc47816468b0d87b1cb65244876d708a272a4bb2","v":1,"via":"run"}
Ci-Attestation: {"at":1791965659,"gate":"rust/x86_64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"f85a2bf589d69f317f5a311b704801569f9050f47ea534d783254fe16788a0a8","lane":"cross","parents":["e084cea04cd131623996f307899d6858d0d0ef41"],"secs":77,"stamp":"ca9da11ad2163fcbb40fe6c9273fcab4","tree":"cc47816468b0d87b1cb65244876d708a272a4bb2","v":1,"via":"run"}
Ci-Attestation: {"at":1791965659,"gate":"rust/aarch64-apple-darwin/clippy","host":"linux-x86_64","key":"f85a2bf589d69f317f5a311b704801569f9050f47ea534d783254fe16788a0a8","lane":"cross","parents":["e084cea04cd131623996f307899d6858d0d0ef41"],"secs":77,"stamp":"a27cfd7d3e771591d5c8ba94794382a1","tree":"cc47816468b0d87b1cb65244876d708a272a4bb2","v":1,"via":"run"}
Ci-Attestation: {"at":1791965659,"gate":"rust/aarch64-apple-darwin/dylint","host":"linux-x86_64","key":"f85a2bf589d69f317f5a311b704801569f9050f47ea534d783254fe16788a0a8","lane":"cross","parents":["e084cea04cd131623996f307899d6858d0d0ef41"],"secs":77,"stamp":"b0570078cb60ef6ac387ddc0dd16f227","tree":"cc47816468b0d87b1cb65244876d708a272a4bb2","v":1,"via":"run"}
Ci-Attestation: {"at":1791965659,"gate":"rust/x86_64-apple-darwin/clippy","host":"linux-x86_64","key":"f85a2bf589d69f317f5a311b704801569f9050f47ea534d783254fe16788a0a8","lane":"cross","parents":["e084cea04cd131623996f307899d6858d0d0ef41"],"secs":77,"stamp":"1311ba007dba15d131586f29ed4ff238","tree":"cc47816468b0d87b1cb65244876d708a272a4bb2","v":1,"via":"run"}
Ci-Attestation: {"at":1791965659,"gate":"rust/x86_64-apple-darwin/dylint","host":"linux-x86_64","key":"f85a2bf589d69f317f5a311b704801569f9050f47ea534d783254fe16788a0a8","lane":"cross","parents":["e084cea04cd131623996f307899d6858d0d0ef41"],"secs":77,"stamp":"9a4706e96de92984424b5d54aa03ee56","tree":"cc47816468b0d87b1cb65244876d708a272a4bb2","v":1,"via":"run"}
Ci-Attestation: {"at":1791965659,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"220244e8c180e360ecd26a701b008f52d5aa6e2ab16c9734ce11c7ce68379be6","lane":"tier2-linux","parents":["e084cea04cd131623996f307899d6858d0d0ef41"],"secs":172,"stamp":"a7b927c5bf22d814f4616bb81679d507","tree":"cc47816468b0d87b1cb65244876d708a272a4bb2","v":1,"via":"run"}
@zackees zackees added the ci-full Run every CI job on this PR, including the release-gating OBS app builds and Flatpak label Oct 14, 2026
@zackees

zackees commented Oct 14, 2026

Copy link
Copy Markdown
Member Author

Duplicate of #711 (opened 30 s earlier, same cherry-picks). #711 also runs text-aa.py through uv with fonttools pinned, as #686 asks, and the font regenerates byte for byte. Proposing to land #711 and close this one. #486 is left to whoever claimed it.

@zackees

zackees commented Oct 14, 2026

Copy link
Copy Markdown
Member Author

Superseded by #711, merged (same cherry-picks of @chriscoveries' RED and GREEN, plus the uv-run generator). Branch left in place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-full Run every CI job on this PR, including the release-gating OBS app builds and Flatpak

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

bug: text-freetype2: toggling Antialiasing blanks characters in "Read from file" text

2 participants