1 /*-------------------------------------------------------------------------- 2 ----- File: t1libx.h 3 ----- Author: Rainer Menzner (Rainer.Menzner@web.de) 4 ----- Date: 2003-01-02 5 ----- Description: This file is part of the t1-library. It must be 6 included by the user of the t1lib. It contains 7 function declarations for the X11 wrapper. 8 ----- Copyright: t1lib is copyrighted (c) Rainer Menzner, 1996-2003. 9 As of version 0.5, t1lib is distributed under the 10 GNU General Public Library Lincense. The 11 conditions can be found in the files LICENSE and 12 LGPL, which should reside in the toplevel 13 directory of the distribution. Please note that 14 there are parts of t1lib that are subject to 15 other licenses: 16 The parseAFM-package is copyrighted by Adobe Systems 17 Inc. 18 The type1 rasterizer is copyrighted by IBM and the 19 X11-consortium. 20 ----- Warranties: Of course, there's NO WARRANTY OF ANY KIND :-) 21 ----- Credits: I want to thank IBM and the X11-consortium for making 22 their rasterizer freely available. 23 Also thanks to Piet Tutelaers for his ps2pk, from 24 which I took the rasterizer sources in a format 25 independent from X11. 26 Thanks to all people who make free software living! 27 --------------------------------------------------------------------------*/ 28 29 30 #ifndef T1LIBX_H_INCLUDED 31 32 #define T1LIBX_H_INCLUDED 33 34 35 #ifndef _XLIB_H_ 36 #include <X11/Xlib.h> 37 #endif 38 39 40 #define T1LIB_X11_SUPPORT 41 42 /* For paint mode of X-rastering functions */ 43 #define T1_OPAQUE 0x1 44 #define T1_TRANSPARENT 0x0 45 46 47 /* type definitions, needed by the user: */ 48 49 #if defined(__cplusplus) || defined(c_plusplus) 50 extern "C" { 51 #endif 52 53 54 /* from t1x11.c */ 55 extern int T1_SetX11Params( Display *display, 56 Visual *visual, 57 unsigned int depth, 58 Colormap colormap); 59 extern GLYPH *T1_SetCharX( Drawable d, GC gc, int mode, int x, int y, 60 int FontID, char charcode, 61 float size, T1_TMATRIX *transform); 62 extern GLYPH *T1_SetStringX( Drawable d, GC gc, int mode, int x, int y, 63 int FontID, char *string, int len, 64 long spaceoff, int modflag, 65 float size, T1_TMATRIX *transform); 66 extern GLYPH *T1_SetRectX( Drawable d, GC gc, int mode, int x_dest, int y_dest, 67 int FontID, float size, 68 float width, float height, 69 T1_TMATRIX *transform); 70 extern GLYPH *T1_AASetCharX( Drawable d, GC gc, int mode, int x, int y, 71 int FontID, char charcode, 72 float size, T1_TMATRIX *transform); 73 extern GLYPH *T1_AASetStringX( Drawable d, GC gc, int mode, int x, int y, 74 int FontID, char *string, int len, 75 long spaceoff, int modflag, 76 float size, T1_TMATRIX *transform); 77 extern GLYPH *T1_AASetRectX( Drawable d, GC gc, int mode, int x_dest, int y_dest, 78 int FontID, float size, 79 float width, float height, 80 T1_TMATRIX *transform); 81 extern int T1_ComputeAAColorsX( unsigned long fg, 82 unsigned long bg, 83 int nolevels); 84 extern int T1_GetDepthOfDrawable( Drawable drawable); 85 extern void T1_LogicalPositionX( int pos_switch); 86 extern XImage *T1_XImageFromGlyph( GLYPH *pglyph); 87 88 89 #if defined(__cplusplus) || defined(c_plusplus) 90 } 91 #endif 92 93 #endif /* T1LIBX_H_INCLUDED */ 94