drawing_font.h

Overview

The drawing_font.h file declares the functions related to the font in the drawing module.

File to include: <native_drawing/drawing_font.h>

Library: libnative_drawing.so

Since: 11

Related module: Drawing

Summary

Functions

Name Description
OH_Drawing_Font * OH_Drawing_FontCreate (void) Creates an OH_Drawing_Font object.
void OH_Drawing_FontSetTypeface (OH_Drawing_Font *, OH_Drawing_Typeface *) Sets the typeface for a font.
void OH_Drawing_FontSetTextSize (OH_Drawing_Font *, float textSize) Sets the font size.
void OH_Drawing_FontSetLinearText (OH_Drawing_Font *, bool isLinearText) Sets linear scaling for a font.
void OH_Drawing_FontSetTextSkewX (OH_Drawing_Font *, float skewX) Sets a horizontal skew factor for a font.
void OH_Drawing_FontSetFakeBoldText (OH_Drawing_Font *, bool isFakeBoldText) Sets fake bold for a font by increasing the stroke width.
void OH_Drawing_FontDestroy (OH_Drawing_Font *) Destroys an OH_Drawing_Font object and reclaims the memory occupied by the object.