Temp fix for very large text sizes.

http://codereview.appspot.com/5970065/


git-svn-id: http://skia.googlecode.com/svn/trunk@3569 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bungeman@google.com 2012-04-02 14:34:30 +00:00
parent d42e3f60cd
commit 8cf322666f

View File

@ -631,6 +631,13 @@ static bool isAxisAligned(const SkScalerContext::Rec& rec) {
}
void SkFontHost::FilterRec(SkScalerContext::Rec* rec) {
//BOGUS: http://code.google.com/p/chromium/issues/detail?id=121119
//Cap the requested size as larger sizes give bogus values.
//Remove when http://code.google.com/p/skia/issues/detail?id=554 is fixed.
if (rec->fTextSize > (1 << 14)) {
rec->fTextSize = (1 << 14);
}
if (!gLCDSupportValid) {
InitFreetype();
FT_Done_FreeType(gFTLibrary);