Back to index

tetex-bin  3.0
t1trans.h
Go to the documentation of this file.
00001 /*--------------------------------------------------------------------------
00002   ----- File:        t1trans.h
00003   ----- Author:      Rainer Menzner (Rainer.Menzner@web.de)
00004   ----- Date:        2002-10-19
00005   ----- Description: This file is part of the t1-library. It contains
00006                      definitions and declarations fort t1trans.c
00007   ----- Copyright:   t1lib is copyrighted (c) Rainer Menzner, 1996-2002. 
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 #ifdef T1TRANS_C
00029 
00030 int T1_ExtendFont( int FontID, double extend);
00031 int T1_SlantFont( int FontID, double slant);
00032 int T1_TransformFont( int FontID, T1_TMATRIX *matrix);
00033 double T1_GetExtend( int FontID);
00034 double T1_GetSlant( int FontID);
00035 T1_TMATRIX T1_GetTransform( int FontID);
00036 int T1_SetLinePosition( int FontID, int linetype, float value);
00037 int T1_SetLineThickness( int FontID, int linetype, float value);
00038 float T1_GetLinePosition( int FontID, int linetype);
00039 float T1_GetLineThickness( int FontID, int linetype);
00040 T1_TMATRIX *T1_RotateMatrix( T1_TMATRIX *matrix, double angle);
00041 T1_TMATRIX *T1_MirrorHMatrix( T1_TMATRIX *matrix);
00042 T1_TMATRIX *T1_MirrorVMatrix( T1_TMATRIX *matrix);
00043 T1_TMATRIX *T1_ShearHMatrix( T1_TMATRIX *matrix, double shear);
00044 T1_TMATRIX *T1_ShearVMatrix( T1_TMATRIX *matrix, double shear);
00045 T1_TMATRIX *T1_ExtendHMatrix( T1_TMATRIX *matrix, double extent);
00046 T1_TMATRIX *T1_ExtendVMatrix( T1_TMATRIX *matrix, double extent);
00047 T1_TMATRIX *T1_TransformMatrix( T1_TMATRIX *matrix,
00048                             double cxx, double cyx,
00049                             double cxy, double cyy);
00050 int T1_StrokeFont( int FontID, int dostroke);
00051 int T1_SetStrokeFlag( int FontID);
00052 int T1_ClearStrokeFlag( int FontID);
00053 int T1_GetStrokeMode( int FontID);
00054 int T1_SetStrokeWidth( int FontID, float strokewidth);
00055 float T1_GetStrokeWidth( int FontID);
00056 
00057 
00058 #else
00059 
00060 
00061 extern int T1_ExtendFont( int FontID, double extend);
00062 extern int T1_SlantFont( int FontID, double slant);
00063 extern int T1_TransformFont( int FontID, T1_TMATRIX *matrix);
00064 extern double T1_GetExtend( int FontID);
00065 extern double T1_GetSlant( int FontID);
00066 extern T1_TMATRIX T1_GetTransform( int FontID);
00067 extern int T1_SetLinePosition( int FontID, int linetype, float value);
00068 extern int T1_SetLineThickness( int FontID, int linetype, float value);
00069 extern float T1_GetLinePosition( int FontID, int linetype);
00070 extern float T1_GetLineThickness( int FontID, int linetype);
00071 extern T1_TMATRIX *T1_RotateMatrix( T1_TMATRIX *matrix, double angle);
00072 extern T1_TMATRIX *T1_MirrorHMatrix( T1_TMATRIX *matrix);
00073 extern T1_TMATRIX *T1_MirrorVMatrix( T1_TMATRIX *matrix);
00074 extern T1_TMATRIX *T1_ShearHMatrix( T1_TMATRIX *matrix, double shear);
00075 extern T1_TMATRIX *T1_ShearVMatrix( T1_TMATRIX *matrix, double shear);
00076 extern T1_TMATRIX *T1_ExtendHMatrix( T1_TMATRIX *matrix, double extent);
00077 extern T1_TMATRIX *T1_ExtendVMatrix( T1_TMATRIX *matrix, double extent);
00078 extern T1_TMATRIX *T1_TransformMatrix( T1_TMATRIX *matrix,
00079                                    double cxx, double cyx,
00080                                    double cxy, double cyy);
00081 extern int T1_StrokeFont( int FontID, int dostroke);
00082 extern int T1_SetStrokeFlag( int FontID);
00083 extern int T1_ClearStrokeFlag( int FontID);
00084 extern int T1_GetStrokeMode( int FontID);
00085 extern int T1_SetStrokeWidth( int FontID, float strokewidth);
00086 extern float T1_GetStrokeWidth( int FontID);
00087 
00088 #endif
00089