Skip to main content

OH_Drawing_FontGetTextSize

Function OH_Drawing_FontGetTextSize 

Source
pub unsafe extern "C" fn OH_Drawing_FontGetTextSize(
    font: *const OH_Drawing_Font,
) -> f32
Expand description

@brief Gets text size for an OH_Drawing_Font object.

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param font Indicates the pointer to an OH_Drawing_Font object. @return Returns the size of text. @since 12 @version 1.0