2.4.683 BrtFont

The BrtFont record specifies the properties of one of the fonts used in the workbook.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

dyHeight

grbit

bls

sss

uls

bFamily

bCharSet

unused

brtColor

...

bFontScheme

name (variable)

...

dyHeight (2 bytes): An unsigned integer that specifies height of the font in twips. The value of this field MUST be greater than or equal to 0x0014 and less than or equal to 0x1FFF.

grbit (2 bytes): A FontFlags (section 2.5.53) that specifies the font attributes.

bls (2 bytes): An unsigned integer that specifies the weight of the font. The value of this field MUST be greater than or equal to 0x0190 and less than or equal to 0x03E8. The values are 0x0190 for normal text and 0x02BC for bold text.

sss (2 bytes): An unsigned integer that specifies whether the font is a subscript or a superscript font. The value of this field MUST be one of the values from the following table:

Value

Meaning

0x0000

None

0x0001

Superscript

0x0002

Subscript

uls (1 byte): An unsigned integer that specifies the type of underline to be used. The value of this field MUST be one of the values from the following table:

Value

Meaning

0x00

None

0x01

Single

0x02

Double

0x21

Single accounting

0x22

Double accounting

bFamily (1 byte): An unsigned integer that specifies the font family to which this font belongs. The value of this field MUST be one of the values from the following table:

Value

Meaning

0x00

Not applicable

0x01

Roman

0x02

Swiss

0x03

Modern

0x04

Script

0x05

Decorative

For more information about font family, see the Windows API LOGFONT structure in [MSDN-FONTS].

bCharSet (1 byte): An unsigned integer that specifies the character set. The value of this field MUST be one of the values from the following table:

Value

Name

Meaning

0x00

ANSI_CHARSET

English

0x01

DEFAULT_CHARSET

System locale based

0x02

SYMBOL_CHARSET

Symbol

0x4D

MAC_CHARSET

Macintosh

0x80

SHIFTJIS_CHARSET

Japanese

0x81

HANGUL_CHARSET / HANGEUL_CHARSET

Hangul (Hangeul) Korean

0x82

JOHAB_CHARSET

Johab Korean

0x86

GB2312_CHARSET

Simplified Chinese

0x88

CHINESEBIG5_CHARSET

Traditional Chinese

0xA1

GREEK_CHARSET

Greek

0xA2

TURKISH_CHARSET

Turkish

0xA3

VIETNAMESE_CHARSET

Vietnamese

0xB1

HEBREW_CHARSET

Hebrew

0xB2

ARABIC_CHARSET

Arabic

0xBA

BALTIC_CHARSET

Baltic

0xCC

RUSSIAN_CHARSET

Russian

0xDE

THAI_CHARSET

Thai

0xEE

EASTEUROPE_CHARSET

Eastern European

0xFF

OEM_CHARSET

OEM code page (based on system locale)

For more information about character set, see the Windows API LOGFONT structure in [MSDN-FONTS].

unused (1 byte): Undefined and MUST be ignored.

brtColor (8 bytes): A BrtColor (section 2.4.334) that specifies the color of this font.

bFontScheme (1 byte): An unsigned integer that specifies the font scheme to which this font belongs. When a font is part of a theme as specified in [ISO/IEC29500-1:2016], section 14.2.7, the font is categorized as a major scheme or a minor scheme. When a new theme is chosen, every font that is part of the theme is updated to use the major scheme or the minor scheme. The value of this field MUST be one of the values from the following table:

Value

Meaning

0x00

None

0x01

Major font scheme

0x02

Minor font scheme

name (variable): An XLWideString (section 2.5.169) that specifies the name of the font. The length of this field MUST be greater than or equal to 1 and less than or equal to 31.