CHARFORMAT structure

Contains information about character formatting in a rich edit control.

Rich Edit 2.0: The CHARFORMAT2 structure is a Microsoft Rich Edit 2.0 extension of the CHARFORMAT structure. Microsoft Rich Edit 2.0 and later allows you to use either structure with the EM_GETCHARFORMAT and EM_SETCHARFORMAT messages.

Character set value. The
bCharSet member can be one of the values specified for the
lfCharSet member of the LOGFONT structure. Microsoft Rich Edit 3.0 may override this value if it is invalid for the target characters.