GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||
GeezerVison is showing github.com — Remove fallback code for glyph indices by QuLogic · Pull Request #30168 · matplotlib/matplotlib Conversation
Member
PR summaryGlyph indices are specific to each font. It does not make sense to fall back based on glyph index to another font. This could only really be populated by calling Fortunately, nothing actually uses or requires a fallback through glyph indices, and this is all internal to the extension. Note to reviewers: the second commit here is just the last commit from the PR checklist
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsGlyph indices are specific to each font. It does not make sense to fall back based on glyph index to another font. This could only really be populated by calling `FT2Font.set_text`, but even that was fragile. If a fallback font was used for a character with the same glyph index as a previous character in the main font, then these lookups could be overwritten to the fallback instead of the main font, with a completely different character! Fortunately, nothing actually uses or requires a fallback through glyph indices.
|
There was an error while loading. Please reload this page.
|
As an example, in DejaVu Sans, the letter A is glyph index 36: which has metrics like: In the Last Resort font, the Tibetan block is glyph index 36: So if we have a string with both using fallbacks, then the last glyph 'wins': If we had multiple fonts in the fallbacks, and multiple characters in those fonts that used the same glyph index, then lookup would depend on the order of characters in the text! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
looks good! Can you please drop the last commit and self-merge? The windows failures are a know issue with a new numpy release that is fixed on main. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
1c722e0 to
41cc933
Compare
|
Not going to wait for CI, because it's just going to fail, and then run again when merged, and fail there too... |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Remove fallback code for glyph indices
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.