1e41f4b71Sopenharmony_ci# drawing_register_font.h
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci
4e41f4b71Sopenharmony_ci## Overview
5e41f4b71Sopenharmony_ci
6e41f4b71Sopenharmony_ciThe **drawing_register_font.h** file declares the functions related to the font manager in the drawing module.
7e41f4b71Sopenharmony_ci
8e41f4b71Sopenharmony_ci**File to include**: <native_drawing/drawing_register_font.h>
9e41f4b71Sopenharmony_ci
10e41f4b71Sopenharmony_ci**Library**: libnative_drawing.so
11e41f4b71Sopenharmony_ci
12e41f4b71Sopenharmony_ci**Since**: 11
13e41f4b71Sopenharmony_ci
14e41f4b71Sopenharmony_ci**Related module**: [Drawing](_drawing.md)
15e41f4b71Sopenharmony_ci
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ci## Summary
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci
20e41f4b71Sopenharmony_ci### Functions
21e41f4b71Sopenharmony_ci
22e41f4b71Sopenharmony_ci| Name| Description| 
23e41f4b71Sopenharmony_ci| -------- | -------- |
24e41f4b71Sopenharmony_ci| 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.| 
25e41f4b71Sopenharmony_ci| 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