Issue #3039 - Increase the MAX_FONT_SIZE limit applied in cairo_ft_font to match the gfxFont size limit.

Also adds synching comments just to be sure.
This commit is contained in:
Moonchild 2021-11-20 22:10:34 +00:00 committed by roytam1
commit 35164e2860
2 changed files with 6 additions and 2 deletions

View file

@ -64,9 +64,12 @@ static setLcdFilterFunc setLcdFilter;
/* This is the max number of FT_face objects we keep open at once
*/
#define MAX_OPEN_FACES 10
/* This is the maximum font size we allow to be passed to FT_Set_Char_Size
/* This is the (arbitrary) maximum font size we allow to be passed to
FT_Set_Char_Size.
Note: This should be equal to FONT_MAX_SIZE in thebes/gfxFont.h
*/
#define MAX_FONT_SIZE 1000
#define MAX_FONT_SIZE 2000
/**
* SECTION:cairo-ft

View file

@ -47,6 +47,7 @@ class gfxShapedWord;
class gfxSkipChars;
class gfxMathTable;
// If you change this value, also change MAX_FONT_SIZE in cairo-ft-font.c to match
#define FONT_MAX_SIZE 2000.0
#define NO_FONT_LANGUAGE_OVERRIDE 0