OH_Drawing_CreateTypographyStyle (void) |
Creates an OH_Drawing_TypographyStyle object. |
OH_Drawing_DestroyTypographyStyle (OH_Drawing_TypographyStyle *) |
Destroys an OH_Drawing_TypographyStyle object and reclaims the memory occupied by the object. |
OH_Drawing_SetTypographyTextDirection (OH_Drawing_TypographyStyle *, int) |
Sets the text direction. |
OH_Drawing_SetTypographyTextAlign (OH_Drawing_TypographyStyle *, int) |
Sets the text alignment mode. |
OH_Drawing_SetTypographyTextMaxLines (OH_Drawing_TypographyStyle *, int) |
Sets the maximum number of lines in the text. |
OH_Drawing_CreateTextStyle (void) |
Creates an OH_Drawing_TextStyle object. |
OH_Drawing_DestroyTextStyle (OH_Drawing_TextStyle *) |
Destroys an OH_Drawing_TextStyle object and reclaims the memory occupied by the object. |
OH_Drawing_SetTextStyleColor (OH_Drawing_TextStyle *, uint32_t) |
Sets the text color. |
OH_Drawing_SetTextStyleFontSize (OH_Drawing_TextStyle *, double) |
Sets the font size. |
OH_Drawing_SetTextStyleFontWeight (OH_Drawing_TextStyle *, int) |
Sets the font weight. |
OH_Drawing_SetTextStyleBaseLine (OH_Drawing_TextStyle *, int) |
Sets the text baseline. |
OH_Drawing_SetTextStyleDecoration (OH_Drawing_TextStyle *, int) |
Sets the text decoration. |
OH_Drawing_SetTextStyleDecorationColor (OH_Drawing_TextStyle *, uint32_t) |
Sets the color for the text decoration. |
OH_Drawing_SetTextStyleFontHeight (OH_Drawing_TextStyle *, double) |
Sets the font height. |
OH_Drawing_SetTextStyleFontFamilies (OH_Drawing_TextStyle *, int, const char *fontFamilies[]) |
Sets the font families. |
OH_Drawing_SetTextStyleFontStyle (OH_Drawing_TextStyle *, int) |
Sets the font style. |
OH_Drawing_SetTextStyleLocale (OH_Drawing_TextStyle *, const char *) |
Sets the locale. |
OH_Drawing_CreateTypographyHandler (OH_Drawing_TypographyStyle *, OH_Drawing_FontCollection *) |
Creates a handler to an OH_Drawing_TypographyCreate object. |
OH_Drawing_DestroyTypographyHandler (OH_Drawing_TypographyCreate *) |
Reclaims the memory occupied by an OH_Drawing_TypographyCreate object. |
OH_Drawing_TypographyHandlerPushTextStyle (OH_Drawing_TypographyCreate *, OH_Drawing_TextStyle *) |
Sets the text style. |
OH_Drawing_TypographyHandlerAddText (OH_Drawing_TypographyCreate *, const char *) |
Adds text. |
OH_Drawing_TypographyHandlerPopTextStyle (OH_Drawing_TypographyCreate *) |
Removes the topmost style in the stack, leaving the remaining styles in effect. |
OH_Drawing_CreateTypography (OH_Drawing_TypographyCreate *) |
Creates an OH_Drawing_Typography object. |
OH_Drawing_DestroyTypography (OH_Drawing_Typography *) |
Destroys an OH_Drawing_Typography object and reclaims the memory occupied by the object. |
OH_Drawing_TypographyLayout (OH_Drawing_Typography *, double) |
Lays out the typography. |
OH_Drawing_TypographyPaint (OH_Drawing_Typography *, OH_Drawing_Canvas *, double, double) |
Paints text. |
OH_Drawing_TypographyGetMaxWidth (OH_Drawing_Typography *) |
Obtains the maximum width. |
OH_Drawing_TypographyGetHeight (OH_Drawing_Typography *) |
Obtains the height. |
OH_Drawing_TypographyGetLongestLine (OH_Drawing_Typography *) |
Obtains the width of the longest line. You are advised to round up the return value in actual use. When the text content is empty, the minimum float value, that is, -340282346638528859811704183484516925440.000000, is returned. |
OH_Drawing_TypographyGetMinIntrinsicWidth (OH_Drawing_Typography *) |
Obtains the minimum intrinsic width. |
OH_Drawing_TypographyGetMaxIntrinsicWidth (OH_Drawing_Typography *) |
Obtains the maximum intrinsic width. |
OH_Drawing_TypographyGetAlphabeticBaseline (OH_Drawing_Typography *) |
Obtains the alphabetic baseline. |
OH_Drawing_TypographyGetIdeographicBaseline (OH_Drawing_Typography *) |
Obtains the ideographic baseline. |