aboutsummaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorVictoria Lease <violets@google.com>2012-05-30 13:39:03 -0700
committerVictoria Lease <violets@google.com>2012-05-31 09:05:51 -0700
commitbd64a4dd0d45eb7ea09dd46e2e5f3291655dbc5e (patch)
tree0cbaaeb7661e5196a459ab234355e1a06a8d997f /Android.mk
parentf37732cf5b2f45e434ef1374224b870f1a0f2ca6 (diff)
downloadexternal_skia-bd64a4dd0d45eb7ea09dd46e2e5f3291655dbc5e.zip
external_skia-bd64a4dd0d45eb7ea09dd46e2e5f3291655dbc5e.tar.gz
external_skia-bd64a4dd0d45eb7ea09dd46e2e5f3291655dbc5e.tar.bz2
Use FreeType's "embolden", but only if face is not already bold.
A side-effect of not knowing the actual SkTypeface used to draw text until render-time is that we cannot make decisions based upon the face's proper font metrics. As a result, attempts to draw bold text will fail when a fallback font with normal weight is selected. With this, we can feel free to enable fake bold mode even if the primary font is bold, as the extraneous fake bold bit will just get ignored at render-time if the actual font used to draw the text is bold. Bug: 6522642 Change-Id: Icdd13f6bd36a85ba374b6ed7a08b596d4c31e86f
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 0630d51..08cf6f8 100644
--- a/Android.mk
+++ b/Android.mk
@@ -51,6 +51,10 @@ endif
# procedures (C and assembly) seriously improve skia performance
LOCAL_CFLAGS += -DTEST_SRC_ALPHA
+# using freetype's embolden allows us to adjust fake bold settings at
+# draw-time, at which point we know which SkTypeface is being drawn
+LOCAL_CFLAGS += -DSK_USE_FREETYPE_EMBOLDEN
+
LOCAL_SRC_FILES:= \
src/core/Sk64.cpp \
src/core/SkAAClip.cpp \