Back to index

tetex-bin  3.0
t1x11.h
Go to the documentation of this file.
00001 /*--------------------------------------------------------------------------
00002   ----- File:        t1x11.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 contains
00006                      definitions and declarations for t1x11.c.
00007   ----- Copyright:   t1lib is copyrighted (c) Rainer Menzner, 1996-2003. 
00008                      As of version 0.5, t1lib is distributed under the
00009                    GNU General Public Library Lincense. The
00010                    conditions can be found in the files LICENSE and
00011                    LGPL, which should reside in the toplevel
00012                    directory of the distribution.  Please note that 
00013                    there are parts of t1lib that are subject to
00014                    other licenses:
00015                    The parseAFM-package is copyrighted by Adobe Systems
00016                    Inc.
00017                    The type1 rasterizer is copyrighted by IBM and the
00018                    X11-consortium.
00019   ----- Warranties:  Of course, there's NO WARRANTY OF ANY KIND :-)
00020   ----- Credits:     I want to thank IBM and the X11-consortium for making
00021                      their rasterizer freely available.
00022                    Also thanks to Piet Tutelaers for his ps2pk, from
00023                    which I took the rasterizer sources in a format
00024                    independent from X11.
00025                      Thanks to all people who make free software living!
00026 --------------------------------------------------------------------------*/
00027 
00028 #include <X11/Xlib.h>
00029 
00030 #ifdef T1X11_C
00031 
00032 int T1_SetX11Params( Display *display,
00033                    Visual *visual,
00034                    unsigned int depth,
00035                    Colormap colormap);
00036 GLYPH *T1_SetCharX( Drawable d, GC gc, int mode, int x, int y,
00037                   int FontID, char charcode,
00038                   float size, T1_TMATRIX *transform);
00039 GLYPH *T1_SetStringX( Drawable d, GC gc, int mode, int x, int y,
00040                     int FontID, char *string, int len,
00041                     long spaceoff, int modflag,
00042                     float size, T1_TMATRIX *transform);
00043 GLYPH *T1_SetRectX( Drawable d, GC gc, int mode, int x_dest, int y_dest,
00044                   int FontID, float size,
00045                   float width, float height,
00046                   T1_TMATRIX *transform);
00047 GLYPH *T1_AASetCharX( Drawable d, GC gc, int mode, int x, int y,
00048                     int FontID, char charcode,
00049                     float size, T1_TMATRIX *transform);
00050 GLYPH *T1_AASetStringX( Drawable d, GC gc, int mode, int x, int y,
00051                      int FontID, char *string, int len,
00052                      long spaceoff, int modflag,
00053                      float size, T1_TMATRIX *transform);
00054 GLYPH *T1_AASetRectX( Drawable d, GC gc, int mode, int x_dest, int y_dest,
00055                     int FontID, float size,
00056                     float width, float height,
00057                     T1_TMATRIX *transform);
00058 int T1_ComputeAAColorsX( unsigned long fg,
00059                       unsigned long bg,
00060                       int nolevels);
00061 int T1_GetDepthOfDrawable( Drawable drawable);
00062 void T1_LogicalPositionX( int pos_switch);
00063 
00064 
00065 #else
00066 
00067 extern Display *T1_display;
00068 
00069 extern int T1_SetX11Params( Display *display,
00070                          Visual *visual,
00071                          unsigned int depth,
00072                          Colormap colormap);
00073 extern GLYPH *T1_SetCharX( Drawable d, GC gc, int mode, int x, int y,
00074                         int FontID, char charcode,
00075                         float size, T1_TMATRIX *transform);
00076 extern GLYPH *T1_SetStringX( Drawable d, GC gc, int mode, int x, int y,
00077                           int FontID, char *string, int len,
00078                           long spaceoff, int modflag,
00079                           float size, T1_TMATRIX *transform);
00080 extern GLYPH *T1_SetRectX( Drawable d, GC gc, int mode, int x_dest, int y_dest,
00081                         int FontID, float size,
00082                         float width, float height,
00083                         T1_TMATRIX *transform);
00084 extern GLYPH *T1_AASetCharX( Drawable d, GC gc, int mode, int x, int y,
00085                           int FontID, char charcode,
00086                           float size, T1_TMATRIX *transform);
00087 extern GLYPH *T1_AASetStringX( Drawable d, GC gc, int mode, int x, int y,
00088                             int FontID, char *string, int len,
00089                             long spaceoff, int modflag,
00090                             float size, T1_TMATRIX *transform);
00091 extern GLYPH *T1_AASetRectX( Drawable d, GC gc, int mode, int x_dest, int y_dest,
00092                           int FontID, float size,
00093                           float width, float height,
00094                           T1_TMATRIX *transform);
00095 extern int T1_ComputeAAColorsX( unsigned long fg,
00096                             unsigned long bg,
00097                             int nolevels);
00098 extern int T1_GetDepthOfDrawable( Drawable drawable);
00099 extern void T1_LogicalPositionX( int pos_switch);
00100 
00101 
00102 #endif
00103