pub unsafe extern "C" fn OH_Drawing_TypographyLayout(
typography: *mut OH_Drawing_Typography,
maxWidth: f64,
)Expand description
@brief Performs layout calculation on the typography object and wraps text based on the specified maximum width. After this API is called, the properties of the typography object can be correctly obtained.
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param typography Pointer to the {@link OH_Drawing_Typography} object, which is obtained from {@link OH_Drawing_CreateTypography}. @param maxWidth Maximum width of a single line in text typography, in physical pixels (px). The value must be greater than 0. @since 8 @version 1.0