From 35164e28604b853ec7e1802fe160ef297aff38ff Mon Sep 17 00:00:00 2001 From: Moonchild Date: Sat, 20 Nov 2021 22:10:34 +0000 Subject: [PATCH] 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. --- gfx/cairo/cairo/src/cairo-ft-font.c | 7 +++++-- gfx/thebes/gfxFont.h | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gfx/cairo/cairo/src/cairo-ft-font.c b/gfx/cairo/cairo/src/cairo-ft-font.c index 1a2799b86c..a2259c173a 100644 --- a/gfx/cairo/cairo/src/cairo-ft-font.c +++ b/gfx/cairo/cairo/src/cairo-ft-font.c @@ -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 diff --git a/gfx/thebes/gfxFont.h b/gfx/thebes/gfxFont.h index 07c00f04c5..ab1677b9c5 100644 --- a/gfx/thebes/gfxFont.h +++ b/gfx/thebes/gfxFont.h @@ -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