1 /*--------------------------------------------------------------------------
2   ----- File:        t1trans.h
3   ----- Author:      Rainer Menzner (Rainer.Menzner@web.de)
4   ----- Date:        2001-04-01
5   ----- Description: This file is part of the t1-library. It contains
6                      definitions and declarations fort t1trans.c
7   ----- Copyright:   t1lib is copyrighted (c) Rainer Menzner, 1996-2001.
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 #ifdef T1TRANS_C
29 
30 int T1_ExtendFont( int FontID, double extend);
31 int T1_SlantFont( int FontID, double slant);
32 int T1_TransformFont( int FontID, T1_TMATRIX *matrix);
33 double T1_GetExtend( int FontID);
34 double T1_GetSlant( int FontID);
35 T1_TMATRIX T1_GetTransform( int FontID);
36 int T1_SetLinePosition( int FontID, int linetype, float value);
37 int T1_SetLineThickness( int FontID, int linetype, float value);
38 float T1_GetLinePosition( int FontID, int linetype);
39 float T1_GetLineThickness( int FontID, int linetype);
40 T1_TMATRIX *T1_RotateMatrix( T1_TMATRIX *matrix, double angle);
41 T1_TMATRIX *T1_MirrorHMatrix( T1_TMATRIX *matrix);
42 T1_TMATRIX *T1_MirrorVMatrix( T1_TMATRIX *matrix);
43 T1_TMATRIX *T1_ShearHMatrix( T1_TMATRIX *matrix, double shear);
44 T1_TMATRIX *T1_ShearVMatrix( T1_TMATRIX *matrix, double shear);
45 T1_TMATRIX *T1_ExtendHMatrix( T1_TMATRIX *matrix, double extent);
46 T1_TMATRIX *T1_ExtendVMatrix( T1_TMATRIX *matrix, double extent);
47 T1_TMATRIX *T1_TransformMatrix( T1_TMATRIX *matrix,
48 				double cxx, double cyx,
49 				double cxy, double cyy);
50 
51 #else
52 
53 extern int T1_ExtendFont( int FontID, double extend);
54 extern int T1_SlantFont( int FontID, double slant);
55 extern int T1_TransformFont( int FontID, T1_TMATRIX *matrix);
56 extern double T1_GetExtend( int FontID);
57 extern double T1_GetSlant( int FontID);
58 extern T1_TMATRIX T1_GetTransform( int FontID);
59 extern int T1_SetLinePosition( int FontID, int linetype, float value);
60 extern int T1_SetLineThickness( int FontID, int linetype, float value);
61 extern float T1_GetLinePosition( int FontID, int linetype);
62 extern float T1_GetLineThickness( int FontID, int linetype);
63 extern T1_TMATRIX *T1_RotateMatrix( T1_TMATRIX *matrix, double angle);
64 extern T1_TMATRIX *T1_MirrorHMatrix( T1_TMATRIX *matrix);
65 extern T1_TMATRIX *T1_MirrorVMatrix( T1_TMATRIX *matrix);
66 extern T1_TMATRIX *T1_ShearHMatrix( T1_TMATRIX *matrix, double shear);
67 extern T1_TMATRIX *T1_ShearVMatrix( T1_TMATRIX *matrix, double shear);
68 extern T1_TMATRIX *T1_ExtendHMatrix( T1_TMATRIX *matrix, double extent);
69 extern T1_TMATRIX *T1_ExtendVMatrix( T1_TMATRIX *matrix, double extent);
70 extern T1_TMATRIX *T1_TransformMatrix( T1_TMATRIX *matrix,
71 				       double cxx, double cyx,
72 				       double cxy, double cyy);
73 
74 #endif
75 
76