Back to index

tetex-bin  3.0
t1finfo.h
Go to the documentation of this file.
00001 /*--------------------------------------------------------------------------
00002   ----- File:        t1finfo.h
00003   ----- Author:      Rainer Menzner (Rainer.Menzner@web.de)
00004   ----- Date:        2001-06-03
00005   ----- Description: This file is part of the t1-library. It contains
00006                      declarations and definitions for t1finfo.c.
00007   ----- Copyright:   t1lib is copyrighted (c) Rainer Menzner, 1996-2001. 
00008                      As of version 0.5, t1lib is distributed under the
00009                    GNU General Public Library Lincense. The
00010                    conditions can be found in the files LICENSE and
00011                    LGPL, which should reside in the toplevel
00012                    directory of the distribution.  Please note that 
00013                    there are parts of t1lib that are subject to
00014                    other licenses:
00015                    The parseAFM-package is copyrighted by Adobe Systems
00016                    Inc.
00017                    The type1 rasterizer is copyrighted by IBM and the
00018                    X11-consortium.
00019   ----- Warranties:  Of course, there's NO WARRANTY OF ANY KIND :-)
00020   ----- Credits:     I want to thank IBM and the X11-consortium for making
00021                      their rasterizer freely available.
00022                    Also thanks to Piet Tutelaers for his ps2pk, from
00023                    which I took the rasterizer sources in a format
00024                    independent from X11.
00025                      Thanks to all people who make free software living!
00026 --------------------------------------------------------------------------*/
00027   
00028 
00029 #ifdef T1FINFO_C
00030 
00031 
00032 int T1_GetKerning( int FontID, char char1, char char2);
00033 int T1_GetCharWidth( int FontID, char char1);
00034 BBox T1_GetCharBBox( int FontID, char char1);
00035 float T1_GetUnderlinePosition( int FontID);
00036 float T1_GetUnderlineThickness( int FontID);
00037 float T1_GetItalicAngle( int FontID);
00038 int T1_GetIsFixedPitch( int FontID);
00039 char *T1_GetFontName( int FontID);
00040 char *T1_GetFullName( int FontID);
00041 char *T1_GetFamilyName( int FontID);
00042 char *T1_GetWeight( int FontID);
00043 char *T1_GetVersion( int FontID);
00044 char *T1_GetNotice( int FontID);
00045 char *T1_GetCharName( int FontID, char char1);
00046 int T1_QueryLigs( int FontID, char char1, char **successors, char **ligatures);
00047 int T1_GetEncodingIndex( int FontID, char *char1);
00048 int *T1_GetEncodingIndices( int FontID, char *char1);
00049 int T1_GetStringWidth( int FontID, char *string,
00050                      int len,  long spaceoff,int kerning);
00051 BBox T1_GetStringBBox( int FontID, char *string,
00052                      int len,  long spaceoff, int kerning);
00053 METRICSINFO T1_GetMetricsInfo( int FontID, char *string,
00054                             int len,  long spaceoff, int kerning);
00055 BBox T1_GetFontBBox( int FontID);
00056 char **T1_GetAllCharNames( int FontID);
00057 int T1_GetNoKernPairs( int FontID);
00058 static int cmp_METRICS_ENTRY( const void *entry1, const void *entry2);
00059 int T1_GetNoCompositeChars( int FontID);
00060 int T1_QueryCompositeChar( int FontID, char char1);
00061 T1_COMP_CHAR_INFO *T1_GetCompCharData( int FontID, char char1);
00062 T1_COMP_CHAR_INFO *T1_GetCompCharDataByIndex( int FontID, int index);
00063 int T1_IsInternalChar( int FontID, char char1);
00064 
00065 
00066 #else
00067 
00068 
00069 extern int T1_GetKerning( int FontID, char char1,
00070                        char char2);
00071 extern int T1_GetCharWidth( int FontID, char char1);
00072 extern BBox T1_GetCharBBox( int FontID, char char1);
00073 extern float T1_GetUnderlinePosition( int FontID);
00074 extern float T1_GetUnderlineThickness( int FontID);
00075 extern float T1_GetItalicAngle( int FontID);
00076 extern int T1_GetIsFixedPitch( int FontID);
00077 extern char *T1_GetFontName( int FontID);
00078 extern char *T1_GetFullName( int FontID);
00079 extern char *T1_GetFamilyName( int FontID);
00080 extern char *T1_GetWeight( int FontID);
00081 extern char *T1_GetVersion( int FontID);
00082 extern char *T1_GetNotice( int FontID);
00083 extern char *T1_GetCharName( int FontID, char char1);
00084 extern int T1_QueryLigs( int FontID, char char1, char **successors, char **ligatures);
00085 extern int T1_GetEncodingIndex( int FontID, char *char1);
00086 extern int *T1_GetEncodingIndices( int FontID, char *char1);
00087 extern int T1_GetStringWidth( int FontID, char *string,
00088                            int len,  long spaceoff,int kerning);
00089 extern BBox T1_GetStringBBox( int FontID, char *string,
00090                            int len,  long spaceoff, int kerning);
00091 extern METRICSINFO T1_GetMetricsInfo( int FontID, char *string,
00092                                   int len,  long spaceoff, int kerning);
00093 extern BBox T1_GetFontBBox( int FontID);
00094 extern int T1_GetNoKernPairs( int FontID);
00095 extern char **T1_GetAllCharNames( int FontID);
00096 extern int T1_GetNoCompositeChars( int FontID);
00097 extern int T1_QueryCompositeChar( int FontID, char char1);
00098 extern T1_COMP_CHAR_INFO *T1_GetCompCharData( int FontID, char char1);
00099 extern T1_COMP_CHAR_INFO *T1_GetCompCharDataByIndex( int FontID, int index);
00100 extern int T1_IsInternalChar( int FontID, char char1);
00101 
00102 
00103 #endif
00104