mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-09 05:08:03 +02:00
make FT_Set_Char_Size deal with 0-valued resolution parameter like the other one
This commit is contained in:
parent
94f1227f32
commit
7338ec2b53
2 changed files with 11 additions and 0 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2007-04-03 David Turner <david@freetype.org>
|
||||
|
||||
* src/base/ftobjs.c (FT_Set_Char_Size): As suggested by James Cloos,
|
||||
if one of the resolution is 0, treat it as if it was the same than
|
||||
the other value.
|
||||
|
||||
2007-04-02 David Turner <david@freetype.org>
|
||||
|
||||
Add special code to detect `extra-light' fonts and do not snap their
|
||||
|
|
|
|||
|
|
@ -2425,6 +2425,11 @@
|
|||
else if ( !char_height )
|
||||
char_height = char_width;
|
||||
|
||||
if (!horz_resolution)
|
||||
horz_resolution = vert_resolution;
|
||||
else if (!vert_resolution)
|
||||
vert_resolution = horz_resolution;
|
||||
|
||||
if ( char_width < 1 * 64 )
|
||||
char_width = 1 * 64;
|
||||
if ( char_height < 1 * 64 )
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue