1 /* pdffont.h 2 3 Copyright 2010-2013 Taco Hoekwater <taco@luatex.org> 4 5 This file is part of LuaTeX. 6 7 LuaTeX is free software; you can redistribute it and/or modify it under 8 the terms of the GNU General Public License as published by the Free 9 Software Foundation; either version 2 of the License, or (at your 10 option) any later version. 11 12 LuaTeX is distributed in the hope that it will be useful, but WITHOUT 13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 License for more details. 16 17 You should have received a copy of the GNU General Public License along 18 with LuaTeX; if not, see <http://www.gnu.org/licenses/>. */ 19 20 21 #ifndef PDFFONT_H 22 # define PDFFONT_H 23 24 extern scaled_whd output_one_char(PDF pdf, halfword p); 25 26 extern void pdf_init_font(PDF pdf, internal_font_number f); 27 extern internal_font_number pdf_set_font(PDF pdf, internal_font_number f); 28 29 extern int pk_dpi; /* PK pixel density value from \.{texmf.cnf} */ 30 31 extern internal_font_number tfm_lookup(char *s, scaled fs); 32 33 extern void set_expand_params(internal_font_number f, boolean auto_expand, 34 int stretch_limit, int shrink_limit, 35 int font_step); 36 37 extern void read_expand_font(void); 38 extern void new_letterspaced_font(small_number a); 39 extern void make_font_copy(small_number a); 40 41 extern void pdf_include_chars(PDF); 42 extern void glyph_to_unicode(void); 43 44 extern int fix_expand_value(internal_font_number f, int e); 45 46 #endif 47