aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictoria Lease <violets@google.com>2012-07-27 17:59:46 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-07-27 17:59:46 -0700
commit5ff3803b6d9b61efd86cea72a525cb46e7f8c26e (patch)
treef808831812d825cc00bb0ba43ff7a4a6597e344e
parent456fc154cef79072c3ceeae231a91045e9cb0e01 (diff)
parent1d6fa961d4a4787bf9444e2c0e42591236cfcab2 (diff)
downloadexternal_skia-5ff3803b6d9b61efd86cea72a525cb46e7f8c26e.zip
external_skia-5ff3803b6d9b61efd86cea72a525cb46e7f8c26e.tar.gz
external_skia-5ff3803b6d9b61efd86cea72a525cb46e7f8c26e.tar.bz2
am 1d6fa961: Reduce embolden effect. DO NOT MERGE
* commit '1d6fa961d4a4787bf9444e2c0e42591236cfcab2': Reduce embolden effect. DO NOT MERGE
-rw-r--r--src/ports/SkFontHost_FreeType.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/ports/SkFontHost_FreeType.cpp b/src/ports/SkFontHost_FreeType.cpp
index 621c94a..fc60ef9 100644
--- a/src/ports/SkFontHost_FreeType.cpp
+++ b/src/ports/SkFontHost_FreeType.cpp
@@ -63,6 +63,16 @@
#define SK_GAMMA_EXPONENT 2.2
#endif
+// hand-tuned value to reduce outline embolden strength
+#ifndef SK_OUTLINE_EMBOLDEN_DIVISOR
+ #ifdef SK_BUILD_FOR_ANDROID
+ #define SK_OUTLINE_EMBOLDEN_DIVISOR 34
+ #else
+ #define SK_OUTLINE_EMBOLDEN_DIVISOR 24
+ #endif
+#endif
+
+
#ifdef SK_DEBUG
#define SkASSERT_CONTINUE(pred) \
do { \
@@ -892,7 +902,7 @@ FT_Error SkScalerContext_FreeType::setupSize() {
void SkScalerContext_FreeType::emboldenOutline(FT_Outline* outline) {
FT_Pos strength;
strength = FT_MulFix(fFace->units_per_EM, fFace->size->metrics.y_scale)
- / 24;
+ / SK_OUTLINE_EMBOLDEN_DIVISOR;
FT_Outline_Embolden(outline, strength);
}