Fix rendering bug for small Chinese characters by adding FT_LOAD_NO_B…#32072
Fix rendering bug for small Chinese characters by adding FT_LOAD_NO_B…#32072mohit-sharma-001 wants to merge 3 commits into
Conversation
|
Thank you for opening your first PR into Matplotlib! If you have not heard from us in a week or so, please leave a new comment below and that should bring it to our attention. Most of our reviewers are volunteers and sometimes things fall through the cracks. We also ask that you please finish addressing any review comments on this PR and wait for it to be merged (or closed) before opening a new one, as it can be a valuable learning experience to go through the review process. You can also join us on discourse chat for real-time discussion. For details on testing, writing docs, and our review process, please see the developer guide. We strive to be a welcoming and open project. Please follow our Code of Conduct. |
|
Thanks for the PR. Please add a test, change the language of your comment to English, and update your PR description to use our PR template. |
Updated comment to clarify the purpose of FT_LOAD_NO_BITMAP.
@scottshambaugh |
|
Please iterate on your code until the automated checks pass. There seems to be real linting (formatting) and test failures on your newly added test. |
PR summary
Fixes a rendering issue where small Chinese characters were loaded as pixelated embedded bitmaps instead of smooth vector outlines.
Adding the
FT_LOAD_NO_BITMAPflag toFT_Load_Glyphforces the FreeType engine to ignore embedded bitmaps and use vector outlines, ensuring high-quality rendering at small font sizes.AI Disclosure
Yes, generative AI was used to assist in troubleshooting the FreeType flag and setting up the local build environment.
PR checklist