| 1 |
/*-------------------------------------------------------------------------- |
| 2 |
----- File: t1outline.h |
| 3 |
----- Author: Rainer Menzner ([email protected]) |
| 4 |
----- Date: 2001-05-27 |
| 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-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 T1OUTLINE_C |
| 29 |
|
| 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); |
| 46 |
|
| 47 |
|
| 48 |
#else |
| 49 |
|
| 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, |
| 56 |
T1_OUTLINE *path2); |
| 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); |
| 67 |
|
| 68 |
#endif |
| 69 |
|
| 70 |
|
| 71 |
extern struct region *fontfcnB(int FontID, int modflag, |
| 72 |
struct XYspace *S, char **ev, |
| 73 |
unsigned char index, int *mode, |
| 74 |
psfont *Font_Ptr, |
| 75 |
int do_raster); |
| 76 |
extern struct region *fontfcnB_string( int FontID, int modflag, |
| 77 |
struct XYspace *S, char **ev, |
| 78 |
unsigned char *string, int no_chars, |
| 79 |
int *mode, psfont *Font_Ptr, |
| 80 |
int *kern_pairs, long spacewidth, |
| 81 |
int do_raster); |
| 82 |
extern struct region *fontfcnB_ByName( int FontID, int modflag, |
| 83 |
struct XYspace *S, |
| 84 |
char *charname, |
| 85 |
int *mode, psfont *Font_Ptr, |
| 86 |
int do_raster); |
| 87 |
|
| 88 |
|