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

Unified Diff: trunk/include/ports/SkFontConfigInterface.h

Issue 13297004: extend FontConfigInterface to start to match new fontmgr design (Closed) Base URL: http://skia.googlecode.com/svn/
Patch Set: Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | trunk/src/ports/SkFontConfigInterface_direct.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/include/ports/SkFontConfigInterface.h
===================================================================
--- trunk/include/ports/SkFontConfigInterface.h (revision 8444)
+++ trunk/include/ports/SkFontConfigInterface.h (working copy)
@@ -81,6 +81,20 @@
* libfontconfig. This does not affect the refcnt of the returned instance.
*/
static SkFontConfigInterface* GetSingletonDirectInterface();
+
+ // New APIS, which have default impls for now (which do nothing)
+
+ struct Style {
bungeman-skia 2013/03/29 19:40:36 Should the style also contain a FontIdentity? Then
reed1 2013/03/29 20:11:58 Done via matchFamilyStyle()
+ int fWeight;
+ int fWidth;
+ int fSlant;
+ };
+
+ virtual int countFamilies();
+ virtual int getFamilySet(int index, SkString* outFamilyName,
+ Style style[], int maxCount);
+ virtual int matchFamilySet(const char familyName[], SkString* outFamilyName,
+ Style styles[], int maxCount);
};
#endif
« no previous file with comments | « no previous file | trunk/src/ports/SkFontConfigInterface_direct.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698