Index: samplecode/SampleXfermodesBlur.cpp |
diff --git a/samplecode/SampleXfermodesBlur.cpp b/samplecode/SampleXfermodesBlur.cpp |
index 8a69f000f8d3a7138927a66a1513d4bea36a3509..ef25114cf01d2cbabd39932fad2c88e86293060e 100644 |
--- a/samplecode/SampleXfermodesBlur.cpp |
+++ b/samplecode/SampleXfermodesBlur.cpp |
@@ -28,7 +28,7 @@ |
#include "SkBlurMaskFilter.h" |
static void setNamedTypeface(SkPaint* paint, const char name[]) { |
- paint->setTypeface(SkTypeface::MakeFromName(name, SkTypeface::kNormal)); |
+ paint->setTypeface(SkTypeface::MakeFromName(name, SkFontStyle())); |
} |
static uint16_t gBG[] = { 0xFFFF, 0xCCCF, 0xCCCF, 0xFFFF }; |
@@ -90,7 +90,7 @@ protected: |
SkPaint paint; |
paint.setAntiAlias(true); |
paint.setTextSize(50); |
- paint.setTypeface(SkTypeface::MakeFromName("Arial Unicode MS", SkTypeface::kNormal)); |
+ paint.setTypeface(SkTypeface::MakeFromName("Arial Unicode MS", SkFontStyle())); |
char buffer[10]; |
size_t len = SkUTF8_FromUnichar(0x8500, buffer); |
canvas->drawText(buffer, len, 40, 40, paint); |