Index: gm/dftext.cpp |
diff --git a/gm/dftext.cpp b/gm/dftext.cpp |
index 314ee71389942ed9100b1ab4b79b75cd666db968..63e7cdfa5e60438d1f49fd959ce5e6949c9d5c46 100755 |
--- a/gm/dftext.cpp |
+++ b/gm/dftext.cpp |
@@ -24,14 +24,7 @@ public: |
protected: |
void onOnceBeforeDraw() override { |
- SkString filename = GetResourcePath("/Funkster.ttf"); |
- SkAutoTDelete<SkFILEStream> stream(new SkFILEStream(filename.c_str())); |
- if (!stream->isValid()) { |
- SkDebugf("Could not find Funkster.ttf, please set --resourcePath correctly.\n"); |
- return; |
- } |
- |
- fTypeface = SkTypeface::CreateFromStream(stream.detach()); |
+ fTypeface = GetResourceAsTypeface("/fonts/Funkster.ttf"); |
} |
SkString onShortName() override { |