Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Unified Diff: src/core/SkScalerContext.h

Issue 411313002: Colored Emoji not drawn in Chrome if font style is set as Bold (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Comment fixes Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/fonts/SkTestScalerContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkScalerContext.h
diff --git a/src/core/SkScalerContext.h b/src/core/SkScalerContext.h
index 337b2e077ac3c6b9473a752ac8a08ca6754c2c8c..9db90169fe1820c8a76afb633f8f25b27787bb7a 100644
--- a/src/core/SkScalerContext.h
+++ b/src/core/SkScalerContext.h
@@ -251,7 +251,10 @@ protected:
*/
virtual SkUnichar generateGlyphToChar(uint16_t glyphId);
- void forceGenerateImageFromPath() { fGenerateImageFromPath = true; }
+ /** In case of Bitmap font like Colored Emoji font we need to disable
+ * fGenerateImageFromPath as generating image from path is not possible.
+ */
+ void setGenerateImageFromPath(bool value) { fGenerateImageFromPath = value; }
private:
// never null
« no previous file with comments | « no previous file | src/fonts/SkTestScalerContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698