예제 #1
0
파일: gammatext.cpp 프로젝트: UIKit0/skia
static CGFontRef typefaceToCGFont(const SkTypeface* face) {
    if (NULL == face) {
        return 0;
    }

    CTFontRef ct = SkTypeface_GetCTFontRef(face);
    return CTFontCopyGraphicsFont(ct, NULL);
}
CTFontRef FontPlatformData::ctFont() const
{
    return SkTypeface_GetCTFontRef(m_typeface.get());
};