Functions | |
void | GrGetFontInfo (GR_FONT_ID font, GR_FONT_INFO *fip) |
Gets information about a font. | |
void | GrGetGCTextSize (GR_GC_ID gc, void *str, int count, GR_TEXTFLAGS flags, GR_SIZE *retwidth, GR_SIZE *retheight, GR_SIZE *retbase) |
Calculates the dimensions of a specified text string. | |
GR_FONT_ID | GrCreateFont (GR_CHAR *name, GR_COORD height, GR_LOGFONT *plogfont) |
Attempts to locate a font with the desired attributes and returns a font ID number which can be used to refer to it. | |
void | GrGetFontList (GR_FONTLIST ***fonts, int *numfonts) |
Returns an array of strings containing the names of available fonts and an integer that specifies the number of strings returned. | |
void | GrFreeFontList (GR_FONTLIST ***fonts, int numfonts) |
Frees the specified font list array. | |
void | GrSetFontSize (GR_FONT_ID fontid, GR_COORD size) |
Changes the size of the specified font to the specified size. | |
void | GrSetFontRotation (GR_FONT_ID fontid, int tenthsdegrees) |
Changes the rotation of the specified font to the specified angle. | |
void | GrSetFontAttr (GR_FONT_ID fontid, int setflags, int clrflags) |
Changes the attributes (GR_TFKERNING, GR_TFANTIALIAS, GR_TFUNDERLINE, etc.) of the specified font according to the set and clear mask arguments. | |
void | GrDestroyFont (GR_FONT_ID fontid) |
Frees all resources associated with the specified font ID, and if the font is a non built in type and this is the last ID referring to it, unloads the font from memory. | |
void | GrSetGCFont (GR_GC_ID gc, GR_FONT_ID font) |
Sets the font to be used for text drawing in the specified graphics context to the specified font ID. | |
void | GrText (GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y, void *str, GR_COUNT count, GR_TEXTFLAGS flags) |
Draws the specified text string at the specified position on the specified drawable using the specified graphics context and flags. |
|
Attempts to locate a font with the desired attributes and returns a font ID number which can be used to refer to it. If the plogfont argument is not NULL, the values in that structure will be used to choose a font. Otherwise, if the height is non zero, the built in font with the closest height to that specified will be used. If the height is zero, the built in font with the specified name will be used. If the desired font is not found, the first built in font will be returned as a last resort.
|
|
Frees all resources associated with the specified font ID, and if the font is a non built in type and this is the last ID referring to it, unloads the font from memory.
|
|
Frees the specified font list array.
|
|
Gets information about a font.
|
|
Returns an array of strings containing the names of available fonts and an integer that specifies the number of strings returned.
|
|
Calculates the dimensions of a specified text string. Uses the current font and flags in the specified graphics context. The count argument can be -1 if the string is null terminated.
|
|
Changes the attributes (GR_TFKERNING, GR_TFANTIALIAS, GR_TFUNDERLINE, etc.) of the specified font according to the set and clear mask arguments.
|
|
Changes the rotation of the specified font to the specified angle.
|
|
Changes the size of the specified font to the specified size.
|
|
Sets the font to be used for text drawing in the specified graphics context to the specified font ID.
|
|
Draws the specified text string at the specified position on the specified drawable using the specified graphics context and flags. The default flags specify ASCII encoding and baseline alignment.
|