harmony 鸿蒙drawing_font_collection.h

  • 2025-06-12
  • 浏览 (6)

drawing_font_collection.h

Overview

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

File to include: <native_drawing/drawing_font_collection.h>

Library: libnative_drawing.so

Since: 8

Related module: Drawing

Summary

Functions

Name Description
OH_Drawing_FontCollection * OH_Drawing_CreateFontCollection (void) Creates an OH_Drawing_FontCollection object. The OH_Drawing_FontCollection object created by this function can be used by only one OH_Drawing_TypographyCreate object. To share an OH_Drawing_FontCollection object among multiple OH_Drawing_TypographyCreate objects, use OH_Drawing_CreateSharedFontCollection to create it.
void OH_Drawing_DestroyFontCollection (OH_Drawing_FontCollection *) Destroys an OH_Drawing_FontCollection object and reclaims the memory occupied by the object.
void OH_Drawing_DisableFontCollectionFallback (OH_Drawing_FontCollection *fontCollection) Disables the system fonts.
void OH_Drawing_DisableFontCollectionSystemFont (OH_Drawing_FontCollection *fontCollection) Disables the system fonts.
OH_Drawing_FontCollection * OH_Drawing_CreateSharedFontCollection (void) Creates an OH_Drawing_FontCollection object that is shareable.
void OH_Drawing_ClearFontCaches (OH_Drawing_FontCollection *) Clears the font cache. (The font cache has a memory limit and a clearing mechanism. It occupies limited memory. You are not advised to clear it unless otherwise required.)
OH_Drawing_FontCollection * OH_Drawing_GetFontCollectionGlobalInstance (void) Obtains the global OH_Drawing_FontCollection object, which can be used to sense the theme font information. Do not release the object.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkGraphics 2D

harmony 鸿蒙BufferHandle

harmony 鸿蒙ColorSpacePrimaries

harmony 鸿蒙DisplaySoloist_ExpectedRateRange

harmony 鸿蒙_drawing

harmony 鸿蒙NativeColorSpaceManager

harmony 鸿蒙NativeDisplaySoloist

harmony 鸿蒙NativeVsync

harmony 鸿蒙NativeWindow

harmony 鸿蒙OH_Drawing_BitmapFormat

0  赞