Searched defs:SkAFont (Results 1 – 1 of 1) sorted by relevance
163 struct SkAFont { struct164 SkAFont(const AndroidFontAPI& api, AFont* font) : fAPI(api), fFont(font) {} in SkAFont() argument165 SkAFont(SkAFont&& that) : fAPI(that.fAPI), fFont(that.fFont) { in SkAFont() function168 ~SkAFont() { in ~SkAFont()174 explicit operator bool() { return fFont; } in operator bool()176 const char* getFontFilePath() const { return fAPI.AFont_getFontFilePath(fFont); } in getFontFilePath()177 uint16_t getWeight() const { return fAPI.AFont_getWeight(fFont); } in getWeight()178 bool isItalic() const { return fAPI.AFont_isItalic(fFont); } in isItalic()179 const char* getLocale() const { return fAPI.AFont_getLocale(fFont); } in getLocale()180 size_t getCollectionIndex() const { return fAPI.AFont_getCollectionIndex(fFont); } in getCollectionIndex()[all …]