aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ports
diff options
context:
space:
mode:
authorGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-04-02 14:34:30 +0000
committerGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-04-02 14:34:30 +0000
commit8cf322666faaba298ca66b0acfe32c634c308e2f (patch)
tree1a5df4363d0e63bca1728ae6740e1b47de359dd8 /src/ports
parentd42e3f60cd571afb6c0f1837f9e0996bfe149001 (diff)
Temp fix for very large text sizes.
Diffstat (limited to 'src/ports')
-rw-r--r--src/ports/SkFontHost_FreeType.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ports/SkFontHost_FreeType.cpp b/src/ports/SkFontHost_FreeType.cpp
index 025c68668f..31c8a8f9cc 100644
--- a/src/ports/SkFontHost_FreeType.cpp
+++ b/src/ports/SkFontHost_FreeType.cpp
@@ -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);