LibGd 2.4.0-dev
GD Graphics library
Loading...
Searching...
No Matches
Data Fields
gdFTStringExtra Struct Reference

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
 

Detailed Description

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.

Field Documentation

◆ charmap

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.

◆ flags

int gdFTStringExtra::flags

Logical OR of gdFTEX_* option flags.

◆ fontpath

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().

◆ hdpi

int gdFTStringExtra::hdpi

Horizontal resolution in DPI when gdFTEX_RESOLUTION is set.

◆ linespacing

double gdFTStringExtra::linespacing

Fine-tunes line spacing for newline-separated text.

◆ vdpi

int gdFTStringExtra::vdpi

Vertical resolution in DPI when gdFTEX_RESOLUTION is set.

◆ xshow

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().


The documentation for this struct was generated from the following file: