Repository navigation
text-freetype2: Rebuild file text after antialiasing changes (#484) - #711
Merged
Merged
Conversation
(cherry picked from commit 5a459c8)
Pins fonttools in PEP 723 metadata; the script regenerates the committed font byte for byte.
Member
Author
|
Duplicate of #712 (same #484 test from chriscoveries' branch). Note this branch's diff has no change to |
(cherry picked from commit a18f767)
Member
Author
|
The first CI run failed because the pushed head lacked the GREEN commit; it was picked onto the wrong local branch. 895dc4c adds it. Re-verified locally: 202/202 OFF and ON. |
10 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #484
Refs #686
Fix by @chriscoveries (
chriscoveries/obsrust-forkfix/text-freetype-aa-file-glyphs), cherry-picked with-x, authorship kept.Toggling antialiasing on a file-backed text source cleared the glyph texture but did not mark the vertex buffer for rebuild, so unchanged file text vanished.
Test font
test/cmocka/data/text-aa.ttf(1000 bytes) keeps the test independent of installed fonts. Its outlines are rectangles written intext-aa.py(no third-party glyph data, repository licence). The generator now runs through uv (#!/usr/bin/env -S uv run --script, fonttools pinned in PEP 723 metadata) and regenerates the font byte for byte (uv run test/cmocka/data/text-aa.pythencmp: identical). It is committed rather than generated at test time because the Tier 2 images have no uv or fonttools.RED → GREEN
rust/tools/linux-validate/run.sh, OFF and ON):test_text_aa_fileFAILED:unchanged_file_glyphs_survive_aa,unchanged_file_vertices_follow_aa../lintok. Linux-only test (Fontconfig backend).