Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Parameters
Parameters Description
pImage Pointer to the image.
Function
GFX_STATUS GFX_ImageWidthGet(
GFX_RESOURCE_HDR *pImage)
1.6.1.1.6 Text Rendering Functions
The following API are used to render strings and characters.
Functions
Name Description
GFX_FontAntiAliasGet This function returns the current font font anti-aliasing mode.
GFX_FontAntiAliasSet This function sets the font anti-aliasing mode.
GFX_FontGet This function returns the current font used when rendering strings and
characters.
GFX_FontSet This function sets the current font used when rendering strings and
characters.
GFX_TextCharDraw This function renders the given character using the currently set color
using the currently set font.
GFX_TextCursorPositionSet This function sets the text cursor to a new position.
GFX_TextCursorPositionXGet This function returns the current x position of the text cursor.
GFX_TextCursorPositionYGet This function returns the current y position of the text cursor.
GFX_TextStringBoxDraw This function renders the given string using the currently set color and
font into a rectangular area.
GFX_TextStringDraw This function renders the given string of character using the currently set
color using the currently set font.
GFX_TextStringHeightGet This function returns the height of the given font.
GFX_TextStringWidthGet This function returns the width of the given string using the given font.
1.6.1.1.6.1 GFX_FontAntiAliasGet Function
This function returns the current font font anti-aliasing mode.
File
gfx_primitive.h
Syntax
GFX_FONT_ANTIALIAS_TYPE GFX_FontAntiAliasGet();
Returns
The font anti-aliasing mode used.
Description
This function returns the font anti-aliasing mode used when rendering anti-aliased strings and characters. Default setting at
initialization is GFX_FONT_ANTIALIAS_OPAQUE.
Preconditions
None.
Example
extern const GFX_RESOURCE_HDR antiAliasedFont25;
uint16_t width, height;
1.6 Library Interface MLA - Graphics Library Help Graphics Primitive Layer
98
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_gfx.pdf