This section provides APIs to get string information and draw string with specified font size and font color.
More...
This section provides APIs to get string information and draw string with specified font size and font color.
Terms and Acronyms
| Terms | Details |
| SSC | Supplementary Service Codes. For more information, please refer to Wikipedia. |
| ISO | International Organization for Standardization. For more information, please refer to Wikipedia. |
| BDF | Bitmap Distribution Format. For more information, please refer to Wikipedia. |
How to use the font engine module
- Step 1: Generate the font data files by using the resgen tool. It's mandatory if adding or modifying BDF files. For resource generator tool usage, please change path to ".\tools\pc_tools\resgen_tool" in windows commands and type in "make ?".
- Step 2: Call the font engine API to show string or get string information. Here is an example to show how to show one string with medium font size and white color.
- Sample code:
}
query.
count = wstrlen(L
"Test!");
string_info.
string = L
"Test!";
string_info.
length = wstrlen(L
"Test!");
|
| | Define |
| | This section defines the macros for the font engine.
|
| |
| | Struct |
| | This section defines the structures for the font engine.
|
| |
This function displays the specific string.
- Parameters
-
| [in] | parameter | is the user-defined data to draw the string. |
- Returns
- GDI_FONT_ENGINE_OK, the operation completed successfully.
This function gets the current font size.
- Parameters
-
| [out] | font_size | is the size of the current font. |
- Returns
- void.
This function gets the detailed information of the specified string.
- Parameters
-
| [in,out] | query | is the user-defined query information and query the result provided by the font engine. |
- Returns
- Indicates the number of characters to get the information.
This function gets the text color.
- Returns
- The text color.
This function sets the current font size.
- Parameters
-
| [in] | font_size | is the font size to set. |
- Returns
- void.
This function sets the text color.
- Parameters
-
| [in] | color | is the text color. |
- Returns
- void.