Debian Codegraph @

T1lib/t1lib/t1x11.h

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