1# drawing_register_font.h
2
3
4## Overview
5
6The **drawing_register_font.h** file declares the functions related to the font manager in the drawing module.
7
8**File to include**: <native_drawing/drawing_register_font.h>
9
10**Library**: libnative_drawing.so
11
12**Since**: 11
13
14**Related module**: [Drawing](_drawing.md)
15
16
17## Summary
18
19
20### Functions
21
22| Name| Description|
23| -------- | -------- |
24| uint32_t [OH_Drawing_RegisterFont](_drawing.md#oh_drawing_registerfont) ([OH_Drawing_FontCollection](_drawing.md#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.|
25| uint32_t [OH_Drawing_RegisterFontBuffer](_drawing.md#oh_drawing_registerfontbuffer) ([OH_Drawing_FontCollection](_drawing.md#oh_drawing_fontcollection)\*, const char\* fontFamily, uint8_t\* fontBuffer, size_t length) | Registers a font buffer with the font manager.|
26