Repository navigation
Conversation
iccir
self-requested a review
November 26, 2026 20:13
QuLogic
force-pushed
the
no-bitmap-glyphs
branch
2 times, most recently
from
December 4, 2026 20:09
d9f15c0 to
f48750d
Compare
We don't yet support using them correctly, so they end up rendering as empty glyphs. For now, disable loading them so we always get the scalable glyph instead. As far as I can tell, vector outputs (i.e., those that call `FT2Font.get_path()` instead of using the image) are not affected by this problem. Fixes matplotlib#32063
QuLogic
force-pushed
the
no-bitmap-glyphs
branch
from
December 4, 2026 20:09
f48750d to
cc0e539
Compare
QuLogic
marked this pull request as ready for review
December 4, 2026 20:10
This branch has not been deployed
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.
PR summary
We don't yet support using them correctly, so they end up rendering as empty glyphs. For now, disable loading them so we always get the scalable glyph instead. As far as I can tell, vector outputs (i.e., those that call
FT2Font.get_path()instead of using the image) are not affected by this problem.I have tested this against
SimSun.ttfwith PNG, PDF, PS, and SVG output (the vector ones don't have the problem.)Our builtin fonts don't have any bitmap strikes, so I am working on producing one so that we can test this.I have edited our builtin testing font with FontForge and added a bitmap strike at 25px (which is equal to 18pt @ 100dpi) On


main, using that font produces:whereas on this PR, there are no missing glyphs:
Fixes #32063
AI Disclosure
None
PR quality check