8000 Jpeg quality 95 by default with rendering with PIL by dhyams · Pull Request #1771 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Jpeg quality 95 by default with rendering with PIL #1771

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Apr 23, 2013
Prev Previous commit
Next Next commit
Merge remote branch 'original/master'
Conflicts:
	src/ft2font.cpp
  • Loading branch information
Daniel Hyams committed Apr 19, 2013
commit aedb38686cbe6973c62d9095a4624ca7058f7263
8 changes: 3 additions & 5 deletions src/ft2font.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1616,15 +1616,13 @@ FT2Font::get_glyph_name(const Py::Tuple & args)
_VERBOSE("FT2Font::get_glyph_name");
args.verify_length(1);


char buffer[128];

FT_UInt glyph_number = Py::Int(args[0]);
FT_UInt glyph_number = (FT_UInt)(unsigned long long)Py::Int(args[0]);

if (!FT_HAS_GLYPH_NAMES(face))
{
{
snprintf(buffer, 128, "uni%04x", glyph_number);
} else {
} else {
if (FT_Get_Glyph_Name(face, glyph_number, buffer, 128))
{
throw Py::RuntimeError("Could not get glyph names.");
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0