FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Revert glyph warnings by tacaswell · Pull Request #11615 · matplotlib/matplotlib · GitHub

Repository navigation

Revert glyph warnings - #11615

Merged
anntzer merged 2 commits into
matplotlib:masterfrom
tacaswell:revert_glyph_warnings
Jul 10, 2018
Merged

anntzer merged 2 commits into
matplotlib:masterfrom
tacaswell:revert_glyph_warnings

Conversation

Copy link
Copy Markdown
Member

This are producing many warnings on travis, reverting until we sort out why.

tacaswell added 2 commits July 9, 2018 22:02
…font-missing-glyph-warning"

This reverts commit 7684f0f, reversing
changes made to 9324b27.
…ype-missing-glyphs"

This reverts commit c8a48b8, reversing
changes made to 40cfdae.
tacaswell added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Jul 10, 2018
tacaswell added this to the v3.0 milestone Jul 10, 2018
tacaswell requested review from anntzer and efiring July 10, 2018 02:04

efiring left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

It stops the warnings; the Travis failure is unrelated.

anntzer commented Jul 10, 2018

Copy link
Copy Markdown
Contributor

So the culprit is

def get_char_width(charcode):
where we try to get the widths of all characters in the 0-255 range regardless of whether they exist in the font or not. The correct (and faster) approach is probably to just read the max_advance_width entry in the FT_Face structure (https://www.freetype.org/freetype2/docs/reference/ft2-base_interface.html#FT_FaceRec), but I have no problem with reverting this in the meantime.

Also, it would be nice to clean the warnings that occur during the test run and just make it a failure to have any warning emitted in the test suite (saying this as someone who already spammed the CI twice with repetitive warnings...).

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

Labels

Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL