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

Side by Side Diff: include/ports/SkFontMgr.h

Issue 13094005: impl part of SKFontMgr for mac (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/core/SkFontHost.cpp » ('j') | src/core/SkFontHost.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkFontMgr_DEFINED 8 #ifndef SkFontMgr_DEFINED
9 #define SkFontMgr_DEFINED 9 #define SkFontMgr_DEFINED
10 10
11 #include "SkRefCnt.h" 11 #include "SkRefCnt.h"
12 #include "SkFontStyle.h" 12 #include "SkFontStyle.h"
13 13
14 class SkData; 14 class SkData;
15 class SkStream; 15 class SkStream;
16 class SkString; 16 class SkString;
17 17
18 class SkFontStyleSet : public SkRefCnt { 18 class SkFontStyleSet : public SkRefCnt {
19 public: 19 public:
20 int count() const; 20 virtual int count() = 0;
21 void getStyle(int index, SkFontStyle*) const; 21 virtual void getStyle(int index, SkFontStyle*, SkString* style) = 0;
22 SkTypeface* createTypeface(int index) const; 22 virtual SkTypeface* createTypeface(int index) = 0;
23 }; 23 };
24 24
25 class SkFontMgr : public SkRefCnt { 25 class SkFontMgr : public SkRefCnt {
26 public: 26 public:
27 int countFamilies(); 27 int countFamilies();
28 void getFamilyName(int index, SkString* familyName); 28 void getFamilyName(int index, SkString* familyName);
29 SkFontStyleSet* createStyleSet(int index); 29 SkFontStyleSet* createStyleSet(int index);
30 30
31 /** 31 /**
32 * Find the closest matching typeface to the specified familyName and style 32 * Find the closest matching typeface to the specified familyName and style
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) = 0; 81 virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) = 0;
82 82
83 private: 83 private:
84 static SkFontMgr* Factory(); // implemented by porting layer 84 static SkFontMgr* Factory(); // implemented by porting layer
85 static SkMutex* Mutex(); // implemented by porting layer 85 static SkMutex* Mutex(); // implemented by porting layer
86 86
87 typedef SkRefCnt INHERITED; 87 typedef SkRefCnt INHERITED;
88 }; 88 };
89 89
90 #endif 90 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkFontHost.cpp » ('j') | src/core/SkFontHost.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698