1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
|
/************************************************************************/
/* Management of X11 fonts: Translation of understandable fonts to */
/* X11 structures. */
/************************************************************************/
# ifndef APP_FONT_H /* {{ */
# define APP_FONT_H
# include <X11/Xlib.h>
# include <X11/Intrinsic.h>
# include <docFont.h>
# include <appDraw.h>
# include <psFont.h>
# include <appTool.h>
typedef void (*FontChooserSetFont)( void * target,
char * familyText, int familyNumber, int bold, int slant, int size );
/************************************************************************/
/* Routine declarations. */
/************************************************************************/
extern void appInitFontList( AppPhysicalFontList * apfl );
extern void appCleanFontList( Display * display,
AppPhysicalFontList * apfl );
extern void appEnableFontsTool( void * voidafc,
int enabled );
extern void appFontToolTextReadonly( void * voidafc,
int readonly );
extern void appShowFontsTool( void * voidefc );
extern int appFontCatalog( Display * display,
AppFontFamily ** pFamilies,
int * pCount );
extern void appFontFormatCurrent( char * target,
AppFontFamily * aff,
AppFontTypeface * aft,
int size );
extern int appFontXFont( char * target,
Display * display,
double magnifiedPixelsPerTwip,
AppFontFamily * aff,
AppFontTypeface * aft,
int twipsSize,
int variant );
extern int appOpenDocumentFont( AppDrawingData * add,
DocumentFontList * dfl,
TextAttribute ta );
extern int appFontSetCurrentFont( void * voidefc,
int fontFamilyNumber,
unsigned int updMask,
TextAttribute taNew );
extern void appFontAttributeString( char * target,
const char * familyName,
unsigned int updMask,
TextAttribute taNew );
extern int appFontGetAttributes( char * attributeString,
char ** pFamilyName,
unsigned int * pUpdMask,
TextAttribute * pTaNew );
extern int appGetPsFont( int * pFamily,
int * pFace,
AppFontFamily ** pAff,
AppFontTypeface ** pAft,
const char * afmDirectory,
const DocumentFont * df,
TextAttribute ta );
extern int appCharExistsInFont( const XFontStruct * xfs,
int ch );
# endif /* }} */
|