LibGd 2.4.0-dev
GD Graphics library
Loading...
Searching...
No Matches
Functions
Text Rendering, Bitmap Fonts

Functions

gdFontPtr gdFontGetGiant (void)
 Gets the built-in giant font.
 
gdFontPtr gdFontGetLarge (void)
 Gets the built-in large font.
 
gdFontPtr gdFontGetMediumBold (void)
 Gets the built-in medium bold font.
 
gdFontPtr gdFontGetSmall (void)
 Gets the built-in small font.
 
gdFontPtr gdFontGetTiny (void)
 Gets the built-in tiny font.
 
void gdImageChar (gdImagePtr im, gdFontPtr f, int x, int y, int c, int color)
 Draws a single character.
 
void gdImageCharUp (gdImagePtr im, gdFontPtr f, int x, int y, int c, int color)
 Draws a single character rotated 90 degrees counterclockwise.
 
void gdImageString (gdImagePtr im, gdFontPtr f, int x, int y, unsigned char *s, int color)
 Draws a character string.
 
void gdImageStringUp (gdImagePtr im, gdFontPtr f, int x, int y, unsigned char *s, int color)
 Draws a string rotated 90 degrees counterclockwise.
 
void gdImageString16 (gdImagePtr im, gdFontPtr f, int x, int y, unsigned short *s, int color)
 Draws a character string with 16-bit characters.
 
void gdImageStringUp16 (gdImagePtr im, gdFontPtr f, int x, int y, unsigned short *s, int color)
 Draws a string rotated 90 degrees counterclockwise with 16-bit characters.
 

Detailed Description

Function Documentation

◆ gdImageChar()

void gdImageChar ( gdImagePtr  im,
gdFontPtr  f,
int  x,
int  y,
int  c,
int  color 
)

Draws a single character.

Parameters
imThe image to draw onto.
fThe raster font.
xThe x coordinate of the upper left pixel.
yThe y coordinate of the upper left pixel.
cThe character.
colorThe color.

Variants gdImageCharUp

See also
gdFontPtr

◆ gdImageCharUp()

void gdImageCharUp ( gdImagePtr  im,
gdFontPtr  f,
int  x,
int  y,
int  c,
int  color 
)

Draws a single character rotated 90 degrees counterclockwise.

Parameters
imThe image to draw onto.
fThe raster font.
xThe x coordinate of the upper left pixel.
yThe y coordinate of the upper left pixel.
cThe character.
colorThe color.

◆ gdImageString()

void gdImageString ( gdImagePtr  im,
gdFontPtr  f,
int  x,
int  y,
unsigned char *  s,
int  color 
)

Draws a character string.

Parameters
imThe image to draw onto.
fThe raster font.
xThe x coordinate of the upper left pixel.
yThe y coordinate of the upper left pixel.
sThe character string.
colorThe color.

Variants:

See also
gdFontPtr gdImageStringTTF gdImageString

◆ gdImageString16()

void gdImageString16 ( gdImagePtr  im,
gdFontPtr  f,
int  x,
int  y,
unsigned short *  s,
int  color 
)

Draws a character string with 16-bit characters.

Parameters
imThe image to draw onto.
fThe raster font.
xThe x coordinate of the upper left pixel.
yThe y coordinate of the upper left pixel.
sThe character string (16-bit).
colorThe color.

◆ gdImageStringUp()

void gdImageStringUp ( gdImagePtr  im,
gdFontPtr  f,
int  x,
int  y,
unsigned char *  s,
int  color 
)

Draws a string rotated 90 degrees counterclockwise.

Parameters
imThe image to draw onto.
fThe raster font.
xThe x coordinate of the upper left pixel.
yThe y coordinate of the upper left pixel.
sThe string.
colorThe color.

◆ gdImageStringUp16()

void gdImageStringUp16 ( gdImagePtr  im,
gdFontPtr  f,
int  x,
int  y,
unsigned short *  s,
int  color 
)

Draws a string rotated 90 degrees counterclockwise with 16-bit characters.

Parameters
imThe image to draw onto.
fThe raster font.
xThe x coordinate of the upper left pixel.
yThe y coordinate of the upper left pixel.
sThe string (16-bit).
colorThe color.