OLD | NEW |
---|---|
(Empty) | |
1 | |
bungeman-skia
2013/05/29 21:21:14
Copyright?
reed1
2013/05/30 16:04:29
Done.
| |
2 | |
3 | |
4 #ifndef SkGScalerContext_DEFINED | |
5 #define SkGScalerContext_DEFINED | |
6 | |
7 #include "SkScalerContext.h" | |
8 #include "SkTypeface.h" | |
9 | |
10 class SkGTypeface : public SkTypeface { | |
11 public: | |
12 SkGTypeface(SkTypeface* proxy, const SkPaint&); | |
13 virtual ~SkGTypeface(); | |
14 | |
15 SkTypeface* proxy() const { return fProxy; } | |
16 const SkPaint& paint() const { return fPaint; } | |
17 | |
18 protected: | |
19 virtual SkScalerContext* onCreateScalerContext(const SkDescriptor*) const SK _OVERRIDE; | |
20 virtual void onFilterRec(SkScalerContextRec*) const SK_OVERRIDE; | |
21 virtual SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics( | |
22 SkAdvancedTy pefaceMetrics::PerGlyphInfo, | |
bungeman-skia
2013/05/29 21:21:14
These lines are also rather long.
reed1
2013/05/30 16:04:29
Done.
| |
23 const uint32 _t* glyphIDs, | |
24 uint32_t gly phIDsCount) const SK_OVERRIDE; | |
25 virtual SkStream* onOpenStream(int* ttcIndex) const SK_OVERRIDE; | |
26 virtual void onGetFontDescriptor(SkFontDescriptor*, bool* isLocal) const SK_ OVERRIDE; | |
27 | |
28 virtual int onGetUPEM() const SK_OVERRIDE; | |
29 | |
30 virtual int onGetTableTags(SkFontTableTag tags[]) const SK_OVERRIDE; | |
31 virtual size_t onGetTableData(SkFontTableTag, size_t offset, | |
32 size_t length, void* data) const SK_OVERRIDE; | |
33 | |
34 private: | |
35 SkTypeface* fProxy; | |
36 SkPaint fPaint; | |
37 }; | |
38 | |
39 #endif | |
OLD | NEW |