1 /* catdvi - get text from DVI files 2 Copyright (C) 1999 Antti-Juhani Kaijanaho <gaia@iki.fi> 3 Copyright (C) 2001 Bjoern Brill <brill@fs.math.uni-frankfurt.de> 4 5 This program is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation; either version 2 of the License, or 8 (at your option) any later version. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program; if not, write to the Free Software 17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 */ 19 20 #ifndef PAGE_H 21 #define PAGE_H 22 23 #include "bytesex.h" 24 #include "pageref.h" 25 26 typedef sint32 glyph_t, font_t; 27 28 extern int page_sequential; 29 extern int page_list_numbers; 30 extern struct pageref_t page_start_output, page_last_output; 31 32 void page_begin(sint32 count0); 33 34 /* glyph is Unicode value */ 35 void page_set_glyph( 36 font_t font, glyph_t glyph, 37 sint32 width, sint32 height, sint32 depth, sint32 axis_height, 38 sint32 x, sint32 y 39 ); 40 41 /* page_end will output the resulting page */ 42 void page_end(void); 43 44 #endif /* PAGE_H */ 45