X11workbench Toolkit
1.0
|
Implementation file for font helper functions. More...
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <memory.h>
#include <string.h>
#include <strings.h>
#include <signal.h>
#include <time.h>
#include <X11/cursorfont.h>
#include "window_helper.h"
#include "draw_text.h"
Go to the source code of this file.
Macros | |
#define | FONT_DUMP_DEBUG_LEVEL DebugLevel_Heavy |
Functions | |
void | __internal_disable_antialias (void) |
void | __internal_enable_antialias (void) |
void | __internal_font_helper_init (void) |
initialization for font helper - call once at start of program (WBInit() does this for you) | |
void | __internal_font_helper_exit (void) |
un-initialization for font helper - call once at end of program (WBExit() does this for you) | |
int | WBFontEnableAntiAlias (void) |
returns non-zero value if certain fonts should be anti-aliased when rendered More... | |
void | WBFontSetEnableAntiAlias (int bEnable) |
returns non-zero value if certain fonts should be anti-aliased when rendered More... | |
WB_FONT | WBCopyFont (Display *pDisplay, WB_FONTC pOldFont) |
make a copy of an existing font (best when assigning to a window) More... | |
void | WBFreeFont (Display *pDisplay, WB_FONT pFont) |
free a WB_FONT that was created using one of the WBFont APIs More... | |
WB_FONT | WBLoadFont (Display *pDisplay, const char *szFontName, int iFontSize, int iFlags) |
load a WB_FONT font object based on a font name, size, and font flags More... | |
int | WBFontAvgCharWidth (WB_FONTC pFont0) |
Get the average character width for a font. More... | |
int | WBFontMaxCharWidth (WB_FONTC pFont0) |
Get the maximum character width for a font. More... | |
int | WBFontDescent (WB_FONTC pFont0) |
Get the maximum character descent from a WB_FONT. More... | |
int | WBFontAscent (WB_FONTC pFont0) |
Get the maximum character ascent from a WB_FONT. More... | |
int | WBFontHeight (WB_FONTC pFont0) |
Get the maximum character height from a WB_FONT. More... | |
XCharStruct | WBFontMaxBounds (WB_FONTC pFont0) |
Get a 'maximized' copy of 'max_bounds' (applicable to all font faces in the WB_FONT) More... | |
WB_FONT | WBCopyModifyFont (Display *pDisplay, WB_FONTC pOriginal, int iFontSize, int iFlags) |
load and modify a font according to the specified size and flags More... | |
int | WBTextWidth (WB_FONTC pFont, const char *szText, int cbText) |
Obtain the pixel width of specified text for a specified WB_FONT. More... | |
void | WBTextExtent (WB_FONTC pFont, const char *szText, int cbText, WB_EXTENT *pExtent) |
Obtain the pixel extent of specified text for a specified XFontSet. More... | |
Variables | |
static int | bDisableAntiAlias = 0 |
static int | bEnableTrueTypeFonts = 0 |
Implementation file for font helper functions.
This is the implementation file for font helper functions
Definition in file font_helper.c.