... | ... | @@ -209,16 +209,19 @@ LOGFONT. However, `FS_WEIGHT_BOOK` will be treated `FS_WEIGHT_REGULAR` and |
|
|
You can still use `CreateLogFontByName` to create a new LOGFONT. But you should
|
|
|
make sure to define the new logfont name in new format.
|
|
|
|
|
|
We also introduce the following new functions in version 4.0.0:
|
|
|
We also introduced the following new functions in version 4.0.0:
|
|
|
|
|
|
- `CreateLogFontIndirectEx`: to create a new logfont object by using the properties
|
|
|
of an existing logfont object, but with a new rotation argument. This function is
|
|
|
a supplementary of `CreateLogFontIndirect`.
|
|
|
- `CreateLogFontForMChar2UChar`: to create a logfont in order to convert a multi-byte
|
|
|
character string to `Uchar32` string.
|
|
|
- `LoadDevFontFromIncoreData`: to load a devfont from a file. This function is
|
|
|
a supplementary of `LoadDevFontFromFile`.
|
|
|
|
|
|
## Example
|
|
|
|
|
|
For complete usage example of new font API, you can refer to:
|
|
|
|
|
|
<https://github.com/VincentWei/mg-tests/blob/master/4.0/createlogfontex.c>
|
|
|
|