| OH_Drawing_FontMgr * OH_Drawing_FontMgrCreate (void) |
创建字体管理对象,只支持管理系统字体。 |
| void OH_Drawing_FontMgrDestroy (OH_Drawing_FontMgr *) |
释放字体管理对象占用的内存。 |
| int OH_Drawing_FontMgrGetFamilyCount (OH_Drawing_FontMgr *) |
获取字体家族的数量。 |
| char * OH_Drawing_FontMgrGetFamilyName (OH_Drawing_FontMgr *, int index) |
由索引值获取字体家族名称。 |
| void OH_Drawing_FontMgrDestroyFamilyName (char *familyName) |
释放指定字体家族名称占用的内存。 |
| OH_Drawing_FontStyleSet * OH_Drawing_FontMgrCreateFontStyleSet (OH_Drawing_FontMgr *, int index) |
由字体管理对象构造字体样式集对象。 |
| void OH_Drawing_FontMgrDestroyFontStyleSet (OH_Drawing_FontStyleSet *) |
释放字体样式集对象占用的内存。 |
| OH_Drawing_FontStyleSet * OH_Drawing_FontMgrMatchFamily (OH_Drawing_FontMgr *, const char *familyName) |
由指定的字体家族名称,获取字体样式集对象。 |
| OH_Drawing_Typeface * OH_Drawing_FontMgrMatchFamilyStyle (OH_Drawing_FontMgr *, const char *familyName, OH_Drawing_FontStyleStruct) |
根据指定的字体样式信息和字体家族名称,获取字型对象。 |
| OH_Drawing_Typeface * OH_Drawing_FontMgrMatchFamilyStyleCharacter (OH_Drawing_FontMgr *, const char *familyName, OH_Drawing_FontStyleStruct, const char *bcp47[], int bcp47Count, int32_t character) |
为指定字符获取字型对象,仅在传入字体管理对象中无法找到传入UTF8字符值对应的字型对象时返回空指针。 |
| OH_Drawing_Typeface * OH_Drawing_FontStyleSetCreateTypeface (OH_Drawing_FontStyleSet *, int index) |
为指定索引获取字型对象。 |
| OH_Drawing_FontStyleStruct OH_Drawing_FontStyleSetGetStyle (OH_Drawing_FontStyleSet *, int32_t index, char **styleName) |
获取字体样式。 |
| void OH_Drawing_FontStyleSetFreeStyleName (char **styleName) |
释放指定字体样式的内存。 |
| OH_Drawing_Typeface * OH_Drawing_FontStyleSetMatchStyle (OH_Drawing_FontStyleSet *, OH_Drawing_FontStyleStruct fontStyleStruct) |
获取最接近字体样式的字型对象。 |
| int OH_Drawing_FontStyleSetCount (OH_Drawing_FontStyleSet *) |
获取字体样式集中字体的个数。 |