X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Frrd_afm.h;fp=src%2Frrd_afm.h;h=0000000000000000000000000000000000000000;hb=37de076da2c2a0a786a41366de07fb3e1c18cdc5;hp=e333cbfb5f7241eeaea503e3c1b9b04b26304eb1;hpb=70d51a41b12b440fc2d55faa1958bdc9b4aaeff6;p=rrdtool.git diff --git a/src/rrd_afm.h b/src/rrd_afm.h deleted file mode 100644 index e333cbf..0000000 --- a/src/rrd_afm.h +++ /dev/null @@ -1,69 +0,0 @@ -/**************************************************************************** - * RRDtool 1.2.23 Copyright by Tobi Oetiker, 1997-2007 - **************************************************************************** - * rrd_afm.h Parsing afm tables to find width of strings. - ****************************************************************************/ - -#ifndef RRD_AFM_H -#define RRD_AFM_H - -#include - -#ifdef HAVE_MBSTOWCS -#define afm_char wchar_t -#else -#define afm_char unsigned char -#endif -/* - If the font specified by the name parameter in the routes below - is not found - (because it is not compiled into rrd_afm_data.c by compile_afm.pl) - the font specified by RRD_AFM_DEFAULT_FONT will be used. - If it is not installed, it uses the first font compiled - into rrd_afm_data.c - So they will always use some font. -*/ - -#define RRD_AFM_DEFAULT_FONT "Courier" - -/* measure width of a text string */ -/* fontname can be full name or postscript name */ -double afm_get_text_width( - double start, - const char *font, - double size, - double tabwidth, - const char *text); -double afm_get_text_width_wide( - double start, - const char *font, - double size, - double tabwidth, - const afm_char * text); - -double afm_get_ascender( - const char *font, - double size); -double afm_get_descender( - const char *font, - double size); - -/* get postscript name from fullname or postscript name */ -const char *afm_get_font_postscript_name( - const char *font); -const char *afm_get_font_name( - const char *font); - -/* cc -E -dM /dev/null */ -#ifdef __APPLE__ -/* need charset conversion from macintosh to unicode. */ -extern const unsigned char afm_mac2iso[128]; - -#define afm_fix_osx_charset(c) \ - ( (c) >= 128 && (c) <= 255 ? afm_mac2iso[(c) - 128] : (c)) -#else -/* UNSAFE macro */ -#define afm_fix_osx_charset(x) (x) -#endif - -#endif