harmony 鸿蒙drawing_register_font.h

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

drawing_register_font.h

Overview

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

File to include: <native_drawing/drawing_register_font.h>

Library: libnative_drawing.so

Since: 11

Related module: Drawing

Summary

Functions

Name Description
uint32_t OH_Drawing_RegisterFont (OH_Drawing_FontCollection*, const char* fontFamily, const char* familySrc) Registers a custom font with the font manager. The supported font file formats are .ttf and .otf.
uint32_t OH_Drawing_RegisterFontBuffer (OH_Drawing_FontCollection*, const char* fontFamily, uint8_t* fontBuffer, size_t length) Registers a font buffer with the font manager.

你可能感兴趣的鸿蒙文章

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  赞