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

Side by Side Diff: src/ports/SkFontConfigTypeface.h

Issue 574873002: Add onGetFamilyName to SkTypeface. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add .get() for DirectWrite. Created 6 years, 3 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
« no previous file with comments | « src/fonts/SkTestScalerContext.cpp ('k') | src/ports/SkFontHost_fontconfig.cpp » ('j') | no next file with comments »
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 #include "SkFontConfigInterface.h" 8 #include "SkFontConfigInterface.h"
9 #include "SkFontHost_FreeType_common.h" 9 #include "SkFontHost_FreeType_common.h"
10 #include "SkStream.h" 10 #include "SkStream.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 , fFamilyName(familyName) 58 , fFamilyName(familyName)
59 , fLocalStream(NULL) {} 59 , fLocalStream(NULL) {}
60 60
61 FontConfigTypeface(Style style, bool fixedWidth, SkStream* localStream) 61 FontConfigTypeface(Style style, bool fixedWidth, SkStream* localStream)
62 : INHERITED(style, SkTypefaceCache::NewFontID(), fixedWidth) { 62 : INHERITED(style, SkTypefaceCache::NewFontID(), fixedWidth) {
63 // we default to empty fFamilyName and fIdentity 63 // we default to empty fFamilyName and fIdentity
64 fLocalStream = localStream; 64 fLocalStream = localStream;
65 SkSafeRef(localStream); 65 SkSafeRef(localStream);
66 } 66 }
67 67
68 virtual void onGetFamilyName(SkString* familyName) const SK_OVERRIDE;
68 virtual void onGetFontDescriptor(SkFontDescriptor*, bool*) const SK_OVERRIDE ; 69 virtual void onGetFontDescriptor(SkFontDescriptor*, bool*) const SK_OVERRIDE ;
69 virtual SkStream* onOpenStream(int* ttcIndex) const SK_OVERRIDE; 70 virtual SkStream* onOpenStream(int* ttcIndex) const SK_OVERRIDE;
70 71
71 private: 72 private:
72 typedef SkTypeface_FreeType INHERITED; 73 typedef SkTypeface_FreeType INHERITED;
73 }; 74 };
OLDNEW
« no previous file with comments | « src/fonts/SkTestScalerContext.cpp ('k') | src/ports/SkFontHost_fontconfig.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698