SkPDF: stop setting SkPaint::kStrokeAndFill_Style
* fakebold goes to text-as-path codepath
* text-as-path gets smarter about bitmap fonts (emoji).
* text-as-path emits transparent text (avoids infinite loops by
fixing perspective CTM if needed).
Change-Id: Ic6e97e3d131644e1fd20122b6866e0c9899699d2
Reviewed-on: https://skia-review.googlesource.com/158041
Commit-Queue: Ben Wagner <bungeman@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
Auto-Submit: Hal Canary <halcanary@google.com>
diff --git a/src/pdf/SkPDFDevice.h b/src/pdf/SkPDFDevice.h
index 336370e..8f812bd 100644
--- a/src/pdf/SkPDFDevice.h
+++ b/src/pdf/SkPDFDevice.h
@@ -131,6 +131,8 @@
int fGraphicStateIndex = -1;
};
+ void DrawGlyphRunAsPath(SkPDFDevice* dev, const SkGlyphRun& glyphRun, SkPoint offset);
+
protected:
sk_sp<SkSurface> makeSurface(const SkImageInfo&, const SkSurfaceProps&) override;
@@ -220,6 +222,7 @@
GraphicStateEntry* entry);
void internalDrawGlyphRun(const SkGlyphRun& glyphRun, SkPoint offset);
+ void drawGlyphRunAsPath(const SkGlyphRun& glyphRun, SkPoint offset);
void internalDrawImageRect(SkKeyedImage,
const SkRect* src,