| 1 |
/* extra_routines.h: Tables for glues, rules, penalties, etc. |
| 2 |
|
| 3 |
This file is part of Omega, |
| 4 |
which is based on the web2c distribution of TeX, |
| 5 |
|
| 6 |
Copyright (c) 1994--2001 John Plaice and Yannis Haralambous |
| 7 |
|
| 8 |
Omega is free software; you can redistribute it and/or modify |
| 9 |
it under the terms of the GNU General Public License as published by |
| 10 |
the Free Software Foundation; either version 2 of the License, or |
| 11 |
(at your option) any later version. |
| 12 |
|
| 13 |
Omega is distributed in the hope that it will be useful, |
| 14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 |
GNU General Public License for more details. |
| 17 |
|
| 18 |
You should have received a copy of the GNU General Public License |
| 19 |
along with Omega; if not, write to the Free Software Foundation, Inc., |
| 20 |
59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. |
| 21 |
|
| 22 |
*/ |
| 23 |
|
| 24 |
extern void init_font_ivalue(unsigned); |
| 25 |
extern void init_font_mvalue(unsigned); |
| 26 |
extern void init_font_fvalue(unsigned); |
| 27 |
extern void init_font_penalty(unsigned); |
| 28 |
extern void init_font_rule(unsigned); |
| 29 |
extern void init_font_glue(unsigned); |
| 30 |
|
| 31 |
|
| 32 |
void init_font_ivalue_entry(unsigned); |
| 33 |
void set_font_ivalue_definition(unsigned); |
| 34 |
void init_font_mvalue_entry(unsigned); |
| 35 |
void set_font_mvalue_definition(fix); |
| 36 |
void init_font_fvalue_entry(unsigned); |
| 37 |
void set_font_fvalue_definition(fix); |
| 38 |
void init_font_penalty_entry(unsigned); |
| 39 |
void set_font_penalty_definition(unsigned); |
| 40 |
void init_font_rule_entry(unsigned); |
| 41 |
void set_font_rule_measure(unsigned, fix); |
| 42 |
void init_font_glue_entry(unsigned); |
| 43 |
void set_font_glue_type(unsigned); |
| 44 |
void set_font_glue_width(fix); |
| 45 |
void set_font_glue_character(unsigned); |
| 46 |
void set_font_glue_rule(unsigned, unsigned); |
| 47 |
void set_font_glue_shrink_stretch(unsigned, fix, unsigned); |
| 48 |
|
| 49 |
typedef struct rule_struct { |
| 50 |
fix rule_wd; |
| 51 |
fix rule_ht; |
| 52 |
fix rule_dp; |
| 53 |
} rule; |
| 54 |
|
| 55 |
typedef struct glue_struct { |
| 56 |
fix glue_width; |
| 57 |
fix glue_stretch; |
| 58 |
fix glue_shrink; |
| 59 |
unsigned glue_stretch_order; |
| 60 |
unsigned glue_shrink_order; |
| 61 |
unsigned glue_type; |
| 62 |
unsigned glue_arg_type; |
| 63 |
unsigned glue_arg1; |
| 64 |
unsigned glue_arg2; |
| 65 |
} glue; |
| 66 |
|
| 67 |
extern void set_character_ivalue(unsigned, unsigned); |
| 68 |
extern void set_character_penalty(unsigned, unsigned); |
| 69 |
extern void set_character_mvalue(unsigned, unsigned); |
| 70 |
extern void set_character_fvalue(unsigned, unsigned); |
| 71 |
extern void set_character_rule(unsigned, unsigned); |
| 72 |
extern void set_character_glue(unsigned, unsigned); |
| 73 |
extern void compute_ofm_extra_stuff(void); |
| 74 |
extern void output_ofm_extra_stuff(void); |
| 75 |
|
| 76 |
extern unsigned nki; |
| 77 |
extern unsigned nwi; |
| 78 |
extern unsigned nkp; |
| 79 |
extern unsigned nwp; |
| 80 |
extern unsigned nkm; |
| 81 |
extern unsigned nwm; |
| 82 |
extern unsigned nkf; |
| 83 |
extern unsigned nwf; |
| 84 |
extern unsigned nkr; |
| 85 |
extern unsigned nwr; |
| 86 |
extern unsigned nkg; |
| 87 |
extern unsigned nwg; |
| 88 |
|