harmony 鸿蒙OH_Drawing_FontDescriptor

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

OH_Drawing_FontDescriptor

Overview

The OH_Drawing_FontDescriptor struct describes the detailed information about a system font.

Since: 12

Related module: Drawing

Header file: drawing_text_typography.h

Summary

Member Variables

Name Description
char * path File path of the system font.
char * postScriptName PostScript name that uniquely identifies the system font.
char * fullName Full name of the system font.
char * fontFamily Family of the system font.
char * fontSubfamily Subfamily of the system font.
int weight Weight of the system font.
int width Width of the system font.
int italic Slope of the system font.
bool monoSpace Whether the system font is monospaced. The value true means that the system font is monospaced, and false means the opposite.
bool symbolic Whether the system font supports symbols. The value true means that the system font supports symbols, and false means the opposite.

Member Variable Description

fontFamily

char* OH_Drawing_FontDescriptor::fontFamily

Description

Family of the system font.

fontSubfamily

char* OH_Drawing_FontDescriptor::fontSubfamily

Description

Subfamily of the system font.

fullName

char* OH_Drawing_FontDescriptor::fullName

Description

Full name of the system font.

italic

int OH_Drawing_FontDescriptor::italic

Description

Slope of the system font.

monoSpace

bool OH_Drawing_FontDescriptor::monoSpace

Description

Whether the system font is monospaced. The value true means that the system font is monospaced, and false means the opposite.

path

char* OH_Drawing_FontDescriptor::path

Description

File path of the system font.

postScriptName

char* OH_Drawing_FontDescriptor::postScriptName

Description

PostScript name that uniquely identifies the system font.

symbolic

bool OH_Drawing_FontDescriptor::symbolic

Description

Whether the system font supports symbols. The value true means that the system font supports symbols, and false means the opposite.

weight

int OH_Drawing_FontDescriptor::weight

Description

Weight of the system font.

width

int OH_Drawing_FontDescriptor::width

Description

Width of the system font.

你可能感兴趣的鸿蒙文章

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  赞