OH_Drawing_CreateTypographyStyle (void) |
创建OH_Drawing_TypographyStyle |
OH_Drawing_DestroyTypographyStyle (OH_Drawing_TypographyStyle *) |
释放被OH_Drawing_TypographyStyle对象占据的内存 |
OH_Drawing_SetTypographyTextDirection (OH_Drawing_TypographyStyle *, int) |
设置文本方向 |
OH_Drawing_SetTypographyTextAlign (OH_Drawing_TypographyStyle *, int) |
设置文本对齐方式 |
OH_Drawing_SetTypographyTextMaxLines (OH_Drawing_TypographyStyle *, int) |
设置文本最大行数 |
OH_Drawing_CreateTextStyle (void) |
创建OH_Drawing_TextStyle |
OH_Drawing_DestroyTextStyle (OH_Drawing_TextStyle *) |
释放被OH_Drawing_TextStyle对象占据的内存 |
OH_Drawing_SetTextStyleColor (OH_Drawing_TextStyle *, uint32_t) |
设置文本颜色 |
OH_Drawing_SetTextStyleFontSize (OH_Drawing_TextStyle *, double) |
设置字号 |
OH_Drawing_SetTextStyleFontWeight (OH_Drawing_TextStyle *, int) |
设置字重 |
OH_Drawing_SetTextStyleBaseLine (OH_Drawing_TextStyle *, int) |
设置字体基线位置 |
OH_Drawing_SetTextStyleDecoration (OH_Drawing_TextStyle *, int) |
设置装饰 |
OH_Drawing_SetTextStyleDecorationColor (OH_Drawing_TextStyle *, uint32_t) |
设置装饰颜色 |
OH_Drawing_SetTextStyleFontHeight (OH_Drawing_TextStyle *, double) |
设置字体高度 |
OH_Drawing_SetTextStyleFontFamilies (OH_Drawing_TextStyle *, int, const char *fontFamilies[]) |
设置字体类型 |
OH_Drawing_SetTextStyleFontStyle (OH_Drawing_TextStyle *, int) |
设置字体风格 |
OH_Drawing_SetTextStyleLocale (OH_Drawing_TextStyle *, const char *) |
设置语言区域 |
OH_Drawing_CreateTypographyHandler (OH_Drawing_TypographyStyle *, OH_Drawing_FontCollection *) |
创建指向OH_Drawing_TypographyCreate对象的指针 |
OH_Drawing_DestroyTypographyHandler (OH_Drawing_TypographyCreate *) |
释放被OH_Drawing_TypographyCreate对象占据的内存 |
OH_Drawing_TypographyHandlerPushTextStyle (OH_Drawing_TypographyCreate *, OH_Drawing_TextStyle *) |
设置排版风格 |
OH_Drawing_TypographyHandlerAddText (OH_Drawing_TypographyCreate *, const char *) |
设置文本内容 |
OH_Drawing_TypographyHandlerPopTextStyle (OH_Drawing_TypographyCreate *) |
排版弹出 |
OH_Drawing_CreateTypography (OH_Drawing_TypographyCreate *) |
创建OH_Drawing_Typography |
OH_Drawing_DestroyTypography (OH_Drawing_Typography *) |
释放OH_Drawing_Typography对象占据的内存 |
OH_Drawing_TypographyLayout (OH_Drawing_Typography *, double) |
排版布局 |
OH_Drawing_TypographyPaint (OH_Drawing_Typography *, OH_Drawing_Canvas *, double, double) |
显示文本 |
OH_Drawing_TypographyGetMaxWidth (OH_Drawing_Typography *) |
获取最大宽度。 |
OH_Drawing_TypographyGetHeight (OH_Drawing_Typography *) |
获取高度。 |
OH_Drawing_TypographyGetLongestLine (OH_Drawing_Typography *) |
获取最长行的宽度,建议实际使用时将返回值向上取整。 |
OH_Drawing_TypographyGetMinIntrinsicWidth (OH_Drawing_Typography *) |
获取最小固有宽度。 |
OH_Drawing_TypographyGetMaxIntrinsicWidth (OH_Drawing_Typography *) |
获取最大固有宽度。 |
OH_Drawing_TypographyGetAlphabeticBaseline(OH_Drawing_Typography *) |
获取字母文字基线。 |
OH_Drawing_TypographyGetIdeographicBaseline (OH_Drawing_Typography *) |
获取表意文字基线。 |