Less strict monospaced().
[grace.git] / T1lib / t1lib / t1finfo.h
blob7334f0130c8f1d637d753f11c6bca42e309901c1
1 /*--------------------------------------------------------------------------
2 ----- File: t1finfo.h
3 ----- Author: Rainer Menzner (Rainer.Menzner@web.de)
4 ----- Date: 2001-06-03
5 ----- Description: This file is part of the t1-library. It contains
6 declarations and definitions for t1finfo.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 --------------------------------------------------------------------------*/
29 #ifdef T1FINFO_C
32 int T1_GetKerning( int FontID, char char1, char char2);
33 int T1_GetCharWidth( int FontID, char char1);
34 BBox T1_GetCharBBox( int FontID, char char1);
35 float T1_GetUnderlinePosition( int FontID);
36 float T1_GetUnderlineThickness( int FontID);
37 float T1_GetItalicAngle( int FontID);
38 int T1_GetIsFixedPitch( int FontID);
39 char *T1_GetFontName( int FontID);
40 char *T1_GetFullName( int FontID);
41 char *T1_GetFamilyName( int FontID);
42 char *T1_GetWeight( int FontID);
43 char *T1_GetVersion( int FontID);
44 char *T1_GetNotice( int FontID);
45 char *T1_GetCharName( int FontID, char char1);
46 int T1_QueryLigs( int FontID, char char1, char **successors, char **ligatures);
47 int T1_GetEncodingIndex( int FontID, char *char1);
48 int *T1_GetEncodingIndices( int FontID, char *char1);
49 int T1_GetStringWidth( int FontID, char *string,
50 int len, long spaceoff,int kerning);
51 BBox T1_GetStringBBox( int FontID, char *string,
52 int len, long spaceoff, int kerning);
53 METRICSINFO T1_GetMetricsInfo( int FontID, char *string,
54 int len, long spaceoff, int kerning);
55 BBox T1_GetFontBBox( int FontID);
56 char **T1_GetAllCharNames( int FontID);
57 int T1_GetNoKernPairs( int FontID);
58 static int cmp_METRICS_ENTRY( const void *entry1, const void *entry2);
59 int T1_GetNoCompositeChars( int FontID);
60 int T1_QueryCompositeChar( int FontID, char char1);
61 T1_COMP_CHAR_INFO *T1_GetCompCharData( int FontID, char char1);
62 T1_COMP_CHAR_INFO *T1_GetCompCharDataByIndex( int FontID, int index);
63 int T1_IsInternalChar( int FontID, char char1);
66 #else
69 extern int T1_GetKerning( int FontID, char char1,
70 char char2);
71 extern int T1_GetCharWidth( int FontID, char char1);
72 extern BBox T1_GetCharBBox( int FontID, char char1);
73 extern float T1_GetUnderlinePosition( int FontID);
74 extern float T1_GetUnderlineThickness( int FontID);
75 extern float T1_GetItalicAngle( int FontID);
76 extern int T1_GetIsFixedPitch( int FontID);
77 extern char *T1_GetFontName( int FontID);
78 extern char *T1_GetFullName( int FontID);
79 extern char *T1_GetFamilyName( int FontID);
80 extern char *T1_GetWeight( int FontID);
81 extern char *T1_GetVersion( int FontID);
82 extern char *T1_GetNotice( int FontID);
83 extern char *T1_GetCharName( int FontID, char char1);
84 extern int T1_QueryLigs( int FontID, char char1, char **successors, char **ligatures);
85 extern int T1_GetEncodingIndex( int FontID, char *char1);
86 extern int *T1_GetEncodingIndices( int FontID, char *char1);
87 extern int T1_GetStringWidth( int FontID, char *string,
88 int len, long spaceoff,int kerning);
89 extern BBox T1_GetStringBBox( int FontID, char *string,
90 int len, long spaceoff, int kerning);
91 extern METRICSINFO T1_GetMetricsInfo( int FontID, char *string,
92 int len, long spaceoff, int kerning);
93 extern BBox T1_GetFontBBox( int FontID);
94 extern int T1_GetNoKernPairs( int FontID);
95 extern char **T1_GetAllCharNames( int FontID);
96 extern int T1_GetNoCompositeChars( int FontID);
97 extern int T1_QueryCompositeChar( int FontID, char char1);
98 extern T1_COMP_CHAR_INFO *T1_GetCompCharData( int FontID, char char1);
99 extern T1_COMP_CHAR_INFO *T1_GetCompCharDataByIndex( int FontID, int index);
100 extern int T1_IsInternalChar( int FontID, char char1);
103 #endif