summaryrefslogtreecommitdiff
path: root/Build/source/libs/t1lib/t1subset.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/t1lib/t1subset.h')
-rw-r--r--Build/source/libs/t1lib/t1subset.h76
1 files changed, 76 insertions, 0 deletions
diff --git a/Build/source/libs/t1lib/t1subset.h b/Build/source/libs/t1lib/t1subset.h
new file mode 100644
index 00000000000..9ab7e716c0a
--- /dev/null
+++ b/Build/source/libs/t1lib/t1subset.h
@@ -0,0 +1,76 @@
+/*--------------------------------------------------------------------------
+ ----- File: t1subset.h
+ ----- Author: Rainer Menzner (Rainer.Menzner@web.de)
+ ----- Date: 2001-04-01
+ ----- Description: This file is part of the t1-library. It contains
+ declarations and definitions for t1subset.c.
+ ----- Copyright: t1lib is copyrighted (c) Rainer Menzner, 1996-2001.
+ As of version 0.5, t1lib is distributed under the
+ GNU General Public Library Lincense. The
+ conditions can be found in the files LICENSE and
+ LGPL, which should reside in the toplevel
+ directory of the distribution. Please note that
+ there are parts of t1lib that are subject to
+ other licenses:
+ The parseAFM-package is copyrighted by Adobe Systems
+ Inc.
+ The type1 rasterizer is copyrighted by IBM and the
+ X11-consortium.
+ ----- Warranties: Of course, there's NO WARRANTY OF ANY KIND :-)
+ ----- Credits: I want to thank IBM and the X11-consortium for making
+ their rasterizer freely available.
+ Also thanks to Piet Tutelaers for his ps2pk, from
+ which I took the rasterizer sources in a format
+ independ from X11.
+ Thanks to all people who make free software living!
+--------------------------------------------------------------------------*/
+
+
+#ifdef T1SUBSET_C
+
+
+#define T1_SUBSET_DEFAULT 0x00
+#define T1_SUBSET_FORCE_REENCODE 0x01
+#define T1_SUBSET_SKIP_REENCODE 0x02
+#define T1_SUBSET_ENCRYPT_BINARY 0x04
+/* This is only for debugging, it does not produce valid font-files! */
+#define T1_SUBSET_ENCRYPT_NONE 0x08
+
+
+/* Functions used from the t1io-module, partially written
+ and added for font-subsetting. We don't care about the
+ special F_FILE-type defined in that module because all
+ accesses are done via pointers. */
+extern unsigned long T1GetFileSize( FILE *f);
+extern FILE *T1Open( char *fn, char *mode);
+extern int T1Gets(char *string, int size, FILE *f);
+extern int T1GetDecrypt( void);
+extern int T1GetTrailer(char *string, int size, FILE *f);
+extern int T1Close( FILE *f);
+extern void T1io_reset( void);
+
+char *T1_SubsetFont( int FontID,
+ char *mask,
+ unsigned int flags,
+ int linewidth,
+ unsigned long maxblocksize,
+ unsigned long *bufsize);
+char *T1_GetCharString( int FontID, char *charname, int *len);
+int T1_GetlenIV( int FontID);
+
+
+#define ZEROS 512
+
+#else
+
+extern char *T1_SubsetFont( int FontID,
+ char *mask,
+ unsigned int flags,
+ int linewidth,
+ unsigned long maxblocksize,
+ unsigned long *bufsize);
+extern char *T1_GetCharString( int FontID, char *charname, int *len);
+extern int T1_GetlenIV( int FontID);
+
+
+#endif