Back to index

tetex-bin  3.0
t1libx.h
Go to the documentation of this file.
00001 /*--------------------------------------------------------------------------
00002   ----- File:        t1libx.h
00003   ----- Author:      Rainer Menzner (Rainer.Menzner@web.de)
00004   ----- Date:        2003-01-02
00005   ----- Description: This file is part of the t1-library. It must be
00006                      included by the user of the t1lib. It contains
00007                    function declarations for the X11 wrapper.
00008   ----- Copyright:   t1lib is copyrighted (c) Rainer Menzner, 1996-2003.
00009                      As of version 0.5, t1lib is distributed under the
00010                    GNU General Public Library Lincense. The
00011                    conditions can be found in the files LICENSE and
00012                    LGPL, which should reside in the toplevel
00013                    directory of the distribution.  Please note that 
00014                    there are parts of t1lib that are subject to
00015                    other licenses:
00016                    The parseAFM-package is copyrighted by Adobe Systems
00017                    Inc.
00018                    The type1 rasterizer is copyrighted by IBM and the
00019                    X11-consortium.
00020   ----- Warranties:  Of course, there's NO WARRANTY OF ANY KIND :-)
00021   ----- Credits:     I want to thank IBM and the X11-consortium for making
00022                      their rasterizer freely available.
00023                    Also thanks to Piet Tutelaers for his ps2pk, from
00024                    which I took the rasterizer sources in a format
00025                    independent from X11.
00026                      Thanks to all people who make free software living!
00027 --------------------------------------------------------------------------*/
00028 
00029 
00030 #ifndef T1LIBX_H_INCLUDED
00031 
00032 #define T1LIBX_H_INCLUDED
00033 
00034 
00035 #ifndef _XLIB_H_
00036 #include <X11/Xlib.h>
00037 #endif
00038 
00039 
00040 #define T1LIB_X11_SUPPORT
00041 
00042 /* For paint mode of X-rastering functions */
00043 #define T1_OPAQUE              0x1
00044 #define T1_TRANSPARENT         0x0
00045 
00046 
00047 /* type definitions, needed by the user: */
00048 
00049 #if defined(__cplusplus) || defined(c_plusplus)
00050 extern "C" {
00051 #endif
00052 
00053 
00054 /* from t1x11.c */
00055 extern int T1_SetX11Params( Display *display,
00056                          Visual *visual,
00057                          unsigned int depth,
00058                          Colormap colormap);
00059 extern GLYPH *T1_SetCharX( Drawable d, GC gc, int mode, int x, int y,
00060                         int FontID, char charcode,
00061                         float size, T1_TMATRIX *transform);
00062 extern GLYPH *T1_SetStringX( Drawable d, GC gc, int mode, int x, int y,
00063                           int FontID, char *string, int len,
00064                           long spaceoff, int modflag,
00065                           float size, T1_TMATRIX *transform);
00066 extern GLYPH *T1_SetRectX( Drawable d, GC gc, int mode, int x_dest, int y_dest,
00067                         int FontID, float size,
00068                         float width, float height,
00069                         T1_TMATRIX *transform);
00070 extern GLYPH *T1_AASetCharX( Drawable d, GC gc, int mode, int x, int y,
00071                           int FontID, char charcode,
00072                           float size, T1_TMATRIX *transform);
00073 extern GLYPH *T1_AASetStringX( Drawable d, GC gc, int mode, int x, int y,
00074                             int FontID, char *string, int len,
00075                             long spaceoff, int modflag,
00076                             float size, T1_TMATRIX *transform);
00077 extern GLYPH *T1_AASetRectX( Drawable d, GC gc, int mode, int x_dest, int y_dest,
00078                           int FontID, float size,
00079                           float width, float height,
00080                           T1_TMATRIX *transform);
00081 extern int T1_ComputeAAColorsX( unsigned long fg,
00082                             unsigned long bg,
00083                             int nolevels);
00084 extern int T1_GetDepthOfDrawable( Drawable drawable);
00085 extern void T1_LogicalPositionX( int pos_switch);
00086 extern XImage *T1_XImageFromGlyph( GLYPH *pglyph);
00087 
00088   
00089 #if defined(__cplusplus) || defined(c_plusplus)
00090 }
00091 #endif
00092 
00093 #endif /* T1LIBX_H_INCLUDED */