1 /*--------------------------------------------------------------------------
2 ----- File: t1outline.h
3 ----- Author: Rainer Menzner (Rainer.Menzner@web.de)
5 ----- Description: This file is part of the t1-library. It contains
6 definitions and declarations for t1outline.c.
7 ----- Copyright: t1lib is copyrighted (c) Rainer Menzner, 1996-2002.
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
15 The parseAFM-package is copyrighted by Adobe Systems
17 The type1 rasterizer is copyrighted by IBM and the
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
25 Thanks to all people who make free software living!
26 --------------------------------------------------------------------------*/
30 T1_OUTLINE
*T1_GetCharOutline( int FontID
, char charcode
, float size
,
31 T1_TMATRIX
*transform
);
32 T1_OUTLINE
*T1_GetStringOutline( int FontID
, char *string
, int len
,
33 long spaceoff
, int modflag
, float size
,
34 T1_TMATRIX
*transform
);
35 T1_OUTLINE
*T1_ConcatOutlines( T1_OUTLINE
*path1
, T1_OUTLINE
*path2
);
36 T1_OUTLINE
*T1_ScaleOutline( T1_OUTLINE
*path
, float scale
);
37 T1_OUTLINE
*T1_GetMoveOutline( int FontID
, int deltax
, int deltay
, int modflag
,
38 float size
, T1_TMATRIX
*transform
);
39 void T1_DumpPath( T1_OUTLINE
*path
);
40 void T1_AbsolutePath( T1_OUTLINE
*rpath
);
41 void T1_RelativePath( T1_OUTLINE
*apath
);
42 void T1_ManipulatePath( T1_OUTLINE
*path
,
43 void (*manipulate
)(fractpel
*x
,fractpel
*y
,int type
));
44 T1_OUTLINE
*T1_CopyOutline( T1_OUTLINE
*path
);
45 void T1_FreeOutline( T1_OUTLINE
*path
);
50 extern T1_OUTLINE
*T1_GetCharOutline( int FontID
, char charcode
, float size
,
51 T1_TMATRIX
*transform
);
52 extern T1_OUTLINE
*T1_GetStringOutline( int FontID
, char *string
, int len
,
53 long spaceoff
, int modflag
, float size
,
54 T1_TMATRIX
*transform
);
55 extern T1_OUTLINE
*T1_ConcatOutlines( T1_OUTLINE
*path1
,
57 extern T1_OUTLINE
*T1_ScaleOutline( T1_OUTLINE
*path
, float scale
);
58 extern T1_OUTLINE
*T1_GetMoveOutline( int FontID
, int deltax
, int deltay
, int modflag
,
59 float size
, T1_TMATRIX
*transform
);
60 extern void T1_DumpPath( T1_OUTLINE
*path
);
61 extern void T1_AbsolutePath( T1_OUTLINE
*rpath
);
62 extern void T1_RelativePath( T1_OUTLINE
*apath
);
63 extern void T1_ManipulatePath( T1_OUTLINE
*path
,
64 void (*manipulate
)(fractpel
*x
,fractpel
*y
,int type
));
65 extern T1_OUTLINE
*T1_CopyOutline( T1_OUTLINE
*path
);
66 extern void T1_FreeOutline( T1_OUTLINE
*path
);
71 extern struct region
*fontfcnB(int FontID
, int modflag
,
72 struct XYspace
*S
, char **ev
,
73 unsigned char index
, int *mode
,
77 extern struct region
*fontfcnB_string( int FontID
, int modflag
,
78 struct XYspace
*S
, char **ev
,
79 unsigned char *string
, int no_chars
,
80 int *mode
, psfont
*Font_Ptr
,
81 int *kern_pairs
, long spacewidth
,
84 extern struct region
*fontfcnB_ByName( int FontID
, int modflag
,
87 int *mode
, psfont
*Font_Ptr
,