diff options
author | jvanverth@google.com <jvanverth@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-11-11 20:54:09 +0000 |
---|---|---|
committer | jvanverth@google.com <jvanverth@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-11-11 20:54:09 +0000 |
commit | d830d13c27437b4677a4a1abfa866d98dc2d2ab9 (patch) | |
tree | 777d1614d3956bb174ac65590b2dd0320f656fe8 /src/device/xps | |
parent | 05edd02a7c3d78fe11bbaec83aaa63b2823cce42 (diff) |
Hook in rough distance field support for fonts
R=bsalomon@google.com
Review URL: https://codereview.chromium.org/41213003
git-svn-id: http://skia.googlecode.com/svn/trunk@12229 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/device/xps')
-rw-r--r-- | src/device/xps/SkXPSDevice.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/device/xps/SkXPSDevice.cpp b/src/device/xps/SkXPSDevice.cpp index f837655183..86b8c7d849 100644 --- a/src/device/xps/SkXPSDevice.cpp +++ b/src/device/xps/SkXPSDevice.cpp @@ -2234,6 +2234,9 @@ static void text_draw_init(const SkPaint& paint, SkBitSet& glyphsUsed, SkDraw& myDraw, SkXPSDrawProcs& procs) { procs.fD1GProc = xps_draw_1_glyph; +#if SK_DISTANCEFIELD_FONTS + procs.fFlags = 0; +#endif size_t numGlyphGuess; switch (paint.getTextEncoding()) { case SkPaint::kUTF8_TextEncoding: |