MKI_FONTDEF (Basic Classes) Changed in Version 2023.2 |
www.CAD6.com |
C++ Syntaxclass MKI_FONTDEF { public:
__int32 m_nFontType, m_nFontStyle, m_nFontWeight; MKI_FONTNAME m_szFontName;
void Init( void );
bool IsIdentical( const MKI_FONTDEF& f_rFont );
bool IsFillable( void ); New in Version 2023.2 };
This structure contains the description of a font including type, style and weight.
Element DescriptionFontType [__int32] Type of the font. This value determines, if the specified font is a internal font, a TrueType font or a device font (esp. PostScript). Possible values are:
MKI_FONTTYPE_INTERN Internal font (e.g. "DINDRAFT").
MKI_FONTTYPE_TRUETYPE TrueType font (e.g. "Times New Roman").
MKI_FONTTYPE_DEVICE PostScript or device font (e.g. "Palatino"). FontStyle [__int32] Style of the font. This value consists of two parts: The lower 8 bits (bits 0 to 7) are a bit-wise OR combination of several of the following styles:
MKI_FONTSTYLE_REGULAR No special style.
MKI_FONTSTYLE_ITALIC Italic. If this bit is set the font will be displayed italic (if possible).
MKI_FONTSTYLE_UNDERLINE Underline. If this bit is set the font will be displayed underlined (if possible).
MKI_FONTSTYLE_OVERLINE Underline. If this bit is set the font will be displayed overlined (if possible). Currently, this bit is only supported within dimensions.
MKI_FONTSTYLE_STRIKEOUT Strikeout. If this bit is set the font will be displayed striked out (if possible). This bit is ignored at the moment!
The next 8 bits (bits 8 to 15) are a one-byte value indication the character set to choose for a TrueType font. The following values defined in Win32 are currently supported: ANSI_CHARSET BALTIC_CHARSET CHINESEBIG5_CHARSET DEFAULT_CHARSET EASTEUROPE_CHARSET GB2312_CHARSET GREEK_CHARSET HANGUL_CHARSET MAC_CHARSET OEM_CHARSET RUSSIAN_CHARSET SHIFTJIS_CHARSET SYMBOL_CHARSET TURKISH_CHARSET HEBREW_CHARSET ARABIC_CHARSET THAI_CHARSET For details on these character sets, please refer to the MSDN (keyword LOGFONT) or other Win32/x64 documentation. If the value of this byte is DEFAULT_CHARSET (0x01), this will be translated to SYMBOL_CHARSET to be compatible with previous MKD file versions.
For internal fonts, this value should be set to MKI_FONTSTYLE_REGULAR, as it has no effect in this case. FontWeight [__int32] Weight of the font. The weight of the font is defined analogously to the weight definition of TrueType fonts. Possible values are:
For internal fonts, this value should be set to 400 (Regular), as it has no effect in this case. FontName Changed in Version 2019.1 [MKI_FONTNAME] Name of the font, up to 63 characters. Names of TrueType and PostScript fonts may be up to 31 characters long.
MKD SyntaxType,Style,Weight,Name
The data type MKI_FONTDEF is used to store a font's description. In MKD files, three font types are supported: TrueType, device (esp. PostScript) and internal fonts.
|
CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH