aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleXfermodesBlur.cpp
diff options
context:
space:
mode:
authorGravatar mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-03 13:55:40 +0000
committerGravatar mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-03 13:55:40 +0000
commitbb963e2585efb9690906b5963fcf516ddfb1d432 (patch)
tree609986a8f788366b3e068b1db6db072d93eef4a4 /samplecode/SampleXfermodesBlur.cpp
parent0c23faf222c24529781139495a5f4f4ab61f7cb2 (diff)
remove obsolete mac-font-cruft
git-svn-id: http://skia.googlecode.com/svn/trunk@7949 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode/SampleXfermodesBlur.cpp')
-rw-r--r--samplecode/SampleXfermodesBlur.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/samplecode/SampleXfermodesBlur.cpp b/samplecode/SampleXfermodesBlur.cpp
index a4e410ce7a..ec5909b06c 100644
--- a/samplecode/SampleXfermodesBlur.cpp
+++ b/samplecode/SampleXfermodesBlur.cpp
@@ -31,11 +31,6 @@
#include "SkImageDecoder.h"
#include "SkBlurMaskFilter.h"
-#ifdef SK_BUILD_FOR_MAC
-#import <ApplicationServices/ApplicationServices.h>
-SkTypeface* SkCreateTypefaceFromCTFont(CTFontRef fontRef);
-#endif
-
static void setNamedTypeface(SkPaint* paint, const char name[]) {
SkTypeface* face = SkTypeface::CreateFromName(name, SkTypeface::kNormal);
paint->setTypeface(face);
@@ -73,26 +68,6 @@ class XfermodesBlurView : public SampleView {
r.set(ww/3, hh/3, ww*19/20, hh*19/20);
r.offset(x, y);
canvas->drawRect(r, p);
-
-#ifdef SK_BUILD_FOR_MAC
- static const char* gNames[] = { "Arial", "Times", "Courier", "Lucida" };
- for (size_t j = 0; j < SK_ARRAY_COUNT(gNames); ++j) {
- CFStringRef name = CFStringCreateWithCString(NULL, gNames[j], kCFStringEncodingUTF8);
- CTFontRef font = CTFontCreateWithName(name, 0, NULL);
- SkTypeface* face = SkCreateTypefaceFromCTFont(font);
- SkDebugf("%s ct:%p face:%p ats:%p\n", gNames[j], font, face, CTFontGetPlatformFont(font, NULL));
- for (int i = 9; i <= 24; ++i) {
- CTFontRef newFont = CTFontCreateCopyWithAttributes(font, i, NULL, NULL);
- SkTypeface* newFace = SkCreateTypefaceFromCTFont(newFont);
- SkDebugf("size:%d ct:%p face:%p ats:%p\n", i, newFont, newFace, CTFontGetPlatformFont(newFont, NULL));
- newFace->unref();
- CFRelease(newFont);
- }
- face->unref();
- CFRelease(font);
- CFRelease(name);
- }
-#endif
}
public: