Index: tools/sk_tool_utils.cpp |
diff --git a/tools/sk_tool_utils.cpp b/tools/sk_tool_utils.cpp |
index 1a88086a41eaa42ffb6b1540f27162ab2e52e034..6fcd33751f3c8aa56dfe87d741c7b8265caa8f43 100644 |
--- a/tools/sk_tool_utils.cpp |
+++ b/tools/sk_tool_utils.cpp |
@@ -46,11 +46,20 @@ SkTypeface* create_portable_typeface(const char* name, SkTypeface::Style style) |
return face; |
} |
+SkTypeface* create_portable_typeface_always(const char* name, SkTypeface::Style style) { |
+ return create_font(name, style); |
+} |
+ |
void set_portable_typeface(SkPaint* paint, const char* name, SkTypeface::Style style) { |
SkTypeface* face = create_portable_typeface(name, style); |
SkSafeUnref(paint->setTypeface(face)); |
} |
+void set_portable_typeface_always(SkPaint* paint, const char* name, SkTypeface::Style style) { |
+ SkTypeface* face = create_font(name, style); |
+ SkSafeUnref(paint->setTypeface(face)); |
+} |
+ |
void write_pixels(SkCanvas* canvas, const SkBitmap& bitmap, int x, int y, |
SkColorType colorType, SkAlphaType alphaType) { |
SkBitmap tmp(bitmap); |