|
LibGd 2.4.0-dev
GD Graphics library
|
Structure for passing additional parameters to FreeType 2 string rendering functions. More...
#include <gd.h>
Data Fields | |
| int | flags |
| double | linespacing |
| int | charmap |
| int | hdpi |
| int | vdpi |
| char * | xshow |
| char * | fontpath |
Structure for passing additional parameters to FreeType 2 string rendering functions.
This structure allows for fine-tuning of FreeType 2 string rendering, including line spacing, character mapping, resolution, and more. It is used with the gdImageStringFTEx function.
| int gdFTStringExtra::charmap |
Character map to use when gdFTEX_CHARMAP is set: gdFTEX_Unicode, gdFTEX_Shift_JIS, gdFTEX_Big5, or gdFTEX_Adobe_Custom. When not specified, maps are searched in that order.
| int gdFTStringExtra::flags |
Logical OR of gdFTEX_* option flags.
| char* gdFTStringExtra::fontpath |
When gdFTEX_RETURNFONTPATHNAME is set, receives a gd-allocated string containing the actual font file path used. This is useful when fontconfig selects the font. The caller must free it with gdFree().
| int gdFTStringExtra::hdpi |
Horizontal resolution in DPI when gdFTEX_RESOLUTION is set.
| double gdFTStringExtra::linespacing |
Fine-tunes line spacing for newline-separated text.
| int gdFTStringExtra::vdpi |
Vertical resolution in DPI when gdFTEX_RESOLUTION is set.
| char* gdFTStringExtra::xshow |
When gdFTEX_XSHOW is set, receives a gd-allocated string containing xshow position data for the last string. The caller must free it with gdFree().