# graphic\_config.h - [Overview](#section1314542427165627) - [Summary](#section1517014108165627) - [Macros](#define-members) ## **Overview** **Related Modules:** [Graphic](graphic.md) **Description:** Provides configuration items required for graphics. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Macros

Macro Name and Value

Description

VERSION_STANDARD

 

ENABLE_DMA2D 0

DMA2D hardware acceleration, which does not take effect on other platforms.

ENABLE_DMA2D_TEXT 0

DMA2D hardware acceleration for font rendering, which does not take effect on other platforms.

ENABLE_ICU 0

Advanced algorithm for line breaks, which is disabled by default on other platforms.

ENABLE_WINDOW 1

Multi-window, which is enabled by default on other platforms.

ENABLE_FRAME_BUFFER 0

Display buffer for rendering data refresh, which is disabled by default on other platforms.

ENABLE_VECTOR_FONT 1

Vector type font, which is enabled by default on other platforms.

ENABLE_BUFFER_RGBA 1

Graphics bottom-layer RGBA, which is enabled by default.

ENABLE_HARDWARE_ACCELERATION 1

Graphics rendering hardware acceleration, which is enabled by default.

ENABLE_DEBUG 1

Debug mode, which is disabled by default.

ENABLE_MEMORY_HOOKS 0

Memory hook, which is enabled by default. The system memory allocation is taken over after it is enabled.

ENABLE_FPS_SUPPORT 0

Function for monitoring the image refresh frame rate, which is disabled by default.

ENABLE_ANTIALIAS 1

Anti-aliasing, which is enabled by default.

ENABLE_RECT_ANTIALIAS 0

Rectangle anti-aliasing, which is disabled by default.

ENABLE_SPEC_FONT 0

Font color mode, which is disabled by default. After it is enabled, the font color mode is set to 4 to accelerate font rendering.

ENABLE_GRAPHIC_LOG 0

Log function of a graphics subsystem, which is disabled by default.

ENABLE_AOD 0

Function for receiving input events in screen-off mode, which is disabled by default.

GRAPHIC_LOG_LEVEL 5

Defines the log level. A smaller value indicates a higher priority. Logs whose priorities are higher than a specified level can be recorded. Log levels: NONE: disabling logs FATAL: fatal level ERROR: error level WARN: warning level INFO: info level DEBUG: debugging level.

COLOR_DEPTH 32

Defines the color depth of graphics rendering. The default value is 32 bits. The value can be 16 or 32.

LAYER_PF_CODE 0

Represents the code number of the layer pixel format. 0: LAYER_PF_ARGB1555 1: LAYER_PF_ARGB8888 Other: LAYER_PF_ARGB8888.

DEFAULT_VECTOR_FONT_FILENAME "SourceHanSansSC-Regular.otf"

Defines the file name of default vector font.