mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
Increased size of static Font List buffer to support new fonts
being released. This should really be dynamic. r=kedl
This commit is contained in:
parent
13fdc55f32
commit
d2b79c1047
@ -75,7 +75,7 @@ nsFontMetricsPh :: Init(const nsFont& aFont, nsIDeviceContext *aContext)
|
|||||||
char *str = nsnull;
|
char *str = nsnull;
|
||||||
nsresult result;
|
nsresult result;
|
||||||
nsresult ret_code = NS_ERROR_FAILURE;
|
nsresult ret_code = NS_ERROR_FAILURE;
|
||||||
int MAX_FONTDETAIL = 30;
|
int MAX_FONTDETAIL = 50;
|
||||||
FontDetails fDetails[MAX_FONTDETAIL];
|
FontDetails fDetails[MAX_FONTDETAIL];
|
||||||
int fontcount;
|
int fontcount;
|
||||||
int index;
|
int index;
|
||||||
@ -111,7 +111,7 @@ nsFontMetricsPh :: Init(const nsFont& aFont, nsIDeviceContext *aContext)
|
|||||||
fontcount = PfQueryFonts('a', PHFONT_ALL_FONTS, fDetails, MAX_FONTDETAIL);
|
fontcount = PfQueryFonts('a', PHFONT_ALL_FONTS, fDetails, MAX_FONTDETAIL);
|
||||||
if (fontcount >= MAX_FONTDETAIL)
|
if (fontcount >= MAX_FONTDETAIL)
|
||||||
{
|
{
|
||||||
printf("nsFontMetricsPh::Init Font Array should be increased!\n");
|
printf("nsFontMetricsPh::Init Font Array should be increased! fontcount=%d\n",fontcount);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fontcount)
|
if (fontcount)
|
||||||
|
Loading…
Reference in New Issue
Block a user