Back to index

tetex-bin  3.0
t1subset.h
Go to the documentation of this file.
00001 /*--------------------------------------------------------------------------
00002   ----- File:        t1subset.h
00003   ----- Author:      Rainer Menzner (Rainer.Menzner@web.de)
00004   ----- Date:        2001-04-01
00005   ----- Description: This file is part of the t1-library. It contains
00006                      declarations and definitions for t1subset.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                    independ from X11.
00025                      Thanks to all people who make free software living!
00026 --------------------------------------------------------------------------*/
00027   
00028 
00029 #ifdef T1SUBSET_C
00030 
00031 
00032 #define T1_SUBSET_DEFAULT            0x00
00033 #define T1_SUBSET_FORCE_REENCODE     0x01
00034 #define T1_SUBSET_SKIP_REENCODE      0x02
00035 #define T1_SUBSET_ENCRYPT_BINARY     0x04
00036 /* This is only for debugging, it does not produce valid font-files! */
00037 #define T1_SUBSET_ENCRYPT_NONE       0x08
00038 
00039 
00040 /* Functions used from the t1io-module, partially written
00041    and added for font-subsetting. We don't care about the
00042    special F_FILE-type defined in that module because all
00043    accesses are done via pointers. */
00044 extern unsigned long T1GetFileSize( FILE *f);
00045 extern FILE *T1Open( char *fn, char *mode);
00046 extern int T1Gets(char *string, int size, FILE *f);
00047 extern int T1GetDecrypt( void);
00048 extern int T1GetTrailer(char *string, int size, FILE *f);
00049 extern int T1Close( FILE *f);
00050 extern void T1io_reset( void);
00051 
00052 char *T1_SubsetFont( int FontID,
00053                    char *mask,
00054                    unsigned int flags,
00055                    int linewidth,
00056                    unsigned long maxblocksize,
00057                    unsigned long *bufsize);
00058 char *T1_GetCharString( int FontID, char *charname, int *len);
00059 int T1_GetlenIV( int FontID);
00060 
00061 
00062 #define ZEROS 512
00063 
00064 #else
00065 
00066 extern char *T1_SubsetFont( int FontID,
00067                          char *mask,
00068                          unsigned int flags,
00069                          int linewidth,
00070                          unsigned long maxblocksize,
00071                          unsigned long *bufsize);
00072 extern char *T1_GetCharString( int FontID, char *charname, int *len);
00073 extern int T1_GetlenIV( int FontID);
00074 
00075 
00076 #endif