Back to index

tetex-bin  3.0
Go to the documentation of this file.
00001 /*--------------------------------------------------------------------------
00002   ----- File:        t1aaset.h
00003   ----- Author:      Rainer Menzner (
00004   ----- Date:        2003-01-02
00005   ----- Description: This file is part of the t1-library. It contains
00006                      definitions and declarations for t1set.c.
00007   ----- Copyright:   t1lib is copyrighted (c) Rainer Menzner, 1996-2003. 
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 --------------------------------------------------------------------------*/
00028 #ifdef T1AASET_C
00030 GLYPH *T1_AASetChar( int FontID, char charcode, 
00031                    float size, T1_TMATRIX *transform);
00032 GLYPH *T1_AASetString( int FontID, char *string, int len,
00033                      long spaceoff, int modflag,
00034                      float size, T1_TMATRIX *transform);
00035 GLYPH* T1_AASetRect( int FontID, float size,
00036                    float width, float height,
00037                    T1_TMATRIX *transform);
00038 int T1_AASetGrayValues( unsigned long white,
00039                      unsigned long gray75,
00040                      unsigned long gray50,
00041                      unsigned long gray25,
00042                      unsigned long black);
00043 int T1_AAHSetGrayValues( unsigned long *grayvals);
00044 int T1_AANSetGrayValues( unsigned long fg, unsigned long bg);
00045 int T1_AAGetGrayValues( long *pgrayvals);
00046 int T1_AAHGetGrayValues( long *pgrayvals);
00047 int T1_AANGetGrayValues( long *pgrayvals);
00048 int T1_AASetBitsPerPixel( int bpp);
00049 int T1_AAGetBitsPerPixel( void);
00050 int T1_AASetLevel( int level);
00051 int T1_AAGetLevel( void);
00052 GLYPH *T1_AAFillOutline( T1_OUTLINE *path, int modflag);
00053 int T1_AASetSmartLimits( float limit1, float limit2);
00054 int T1_AASetSmartMode( int smart);
00056 #else
00058 extern GLYPH *T1_AASetChar( int FontID, char charcode, 
00059                          float size, T1_TMATRIX *transform);
00060 extern GLYPH *T1_AASetString( int FontID, char *string, int len,
00061                            long spaceoff, int modflag,
00062                            float size, T1_TMATRIX *transform);
00063 extern GLYPH* T1_AASetRect( int FontID, float size,
00064                        float width, float height,
00065                        T1_TMATRIX *transform);
00066 extern int T1_AASetGrayValues( unsigned long white,
00067                             unsigned long gray75,
00068                             unsigned long gray50,
00069                             unsigned long gray25,
00070                             unsigned long black);
00071 extern int T1_AAHSetGrayValues( unsigned long *grayvals);
00072 extern int T1_AANSetGrayValues( unsigned long bg, unsigned long fg);
00073 extern int T1_AAGetGrayValues( long *pgrayvals);
00074 extern int T1_AAHGetGrayValues( long *pgrayvals);
00075 extern int T1_AANGetGrayValues( long *pgrayvals);
00076 extern int T1_AASetBitsPerPixel( int bpp);
00077 extern int T1_AAGetBitsPerPixel( void);
00078 extern int T1_AASetLevel( int level);
00079 extern int T1_AAGetLevel( void);
00080 extern GLYPH *T1_AAFillOutline( T1_OUTLINE *path, int modflag);
00081 extern int T1_AASetSmartLimits( float limit1, float limit2);
00082 extern int T1_AASetSmartMode( int smart);
00084 #endif