Back to index

wims  3.65+svn20090927
texgif.h
Go to the documentation of this file.
00001 /*    Copyright (C) 2002-2003 XIAO, Gang of Universite de Nice - Sophia Antipolis
00002  *
00003  *  This program is free software; you can redistribute it and/or modify
00004  *  it under the terms of the GNU General Public License as published by
00005  *  the Free Software Foundation; either version 2 of the License, or
00006  *  (at your option) any later version.
00007  *
00008  *  This program is distributed in the hope that it will be useful,
00009  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011  *  GNU General Public License for more details.
00012  *
00013  *  You should have received a copy of the GNU General Public License
00014  *  along with this program; if not, write to the Free Software
00015  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00016  */
00017 
00018 /* dvi 2 gif driver, header file */
00019 
00020 #include "config.h"
00021 #include <stdio.h>
00022 #include <stdlib.h>
00023 #include <stdarg.h>
00024 #include <string.h>
00025 #include <math.h>
00026 #include <unistd.h>
00027 #include <sys/types.h>
00028 #include <sys/stat.h>
00029 #include <sys/wait.h>
00030 #include <ctype.h>
00031 #include "gd.h"
00032 
00033 #define MAX_LINELEN         16383
00034 #define FILE_LENGTH_LIMIT   (1*1024*1024)
00035 #define DVI_STACK_LIMIT            1024
00036 #define FONT_NUMBER_LIMIT   1024
00037 #define CHAR_NUMBER_LIMIT   256
00038 #define IMAGE_SIZE_LIMIT    (4*1024*1024)
00039 #define MAX_FONT_X          1024
00040 #define MAX_FONT_Y          1024
00041 #define MAX_PAGES           4096
00042 
00043 typedef struct {
00044     short int xstart, xmax, ystart, ymax;
00045     long int w, start;
00046 } FONTHEADER;
00047 
00048 typedef struct {
00049     int checksum,designsize,bc,ec,cnt,num;
00050     FONTHEADER *fh;
00051     char *data;
00052     char *cache;
00053 } FONT;
00054