skia2/include/ports
reed@google.com 83787c55db impl part of SKFontMgr for mac
Here is some test code

    SkFontMgr* mgr = SkFontMgr::RefDefault();
    for (int i = 0; i < mgr->countFamilies(); ++i) {
        SkString familyName;
        mgr->getFamilyName(i, &familyName);
        SkDebugf("%s\n", familyName.c_str());
        SkFontStyleSet* styles = mgr->createStyleSet(i);
        for (int j = 0; j < styles->count(); ++j) {
            SkFontStyle fs;
            SkString styleName;
            styles->getStyle(j, &fs, &styleName);
            SkTypeface* face = styles->createTypeface(j);
            SkDebugf("    %s [%d %d] %x\n", styleName.c_str(), fs.weight(),
                     fs.width(), face);
        }
        styles->unref();
    }
    mgr->unref();
Review URL: https://codereview.chromium.org/13094005

git-svn-id: http://skia.googlecode.com/svn/trunk@8395 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-26 17:19:15 +00:00
..
SkFontConfigInterface.h change FontIdentity to explicitly hold ttcIndex and ID, so we can use both in the 2013-03-06 13:06:03 +00:00
SkFontMgr.h impl part of SKFontMgr for mac 2013-03-26 17:19:15 +00:00
SkFontStyle.h check-point (early) for fontmgr stuff, not called. 2013-03-25 20:44:02 +00:00
SkHarfBuzzFont.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkTypeface_android.h oops, don't say static for an extern function 2013-03-26 12:32:03 +00:00
SkTypeface_mac.h Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkTypeface_win.h add new API for gdi fonts (not hooked up yet) 2013-03-20 14:15:52 +00:00