summaryrefslogtreecommitdiff
path: root/source/luametatex/source/tex/texmlist.h
blob: 1cb2a6cc77dd8762216b62fa36cc5515e6987763 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
    See license.txt in the root of this project.
*/

# ifndef LMT_MLIST_H
# define LMT_MLIST_H

typedef struct kernset {
    scaled topright;
    scaled bottomright;
    scaled topleft;
    scaled bottomleft;
    scaled height;
    scaled depth;
    scaled toptotal;
    scaled bottomtotal;
} kernset; 

extern void     tex_run_mlist_to_hlist (halfword p, halfword penalties, halfword style, int beginclass, int endclass);
extern halfword tex_mlist_to_hlist     (halfword, int penalties, int mainstyle, int beginclass, int endclass, kernset *kerns);
extern halfword tex_make_extensible    (halfword fnt, halfword chr, scaled target, scaled min_overlap, int horizontal, halfword att, halfword size);
extern halfword tex_new_math_glyph     (halfword fnt, halfword chr);
extern halfword tex_math_spacing_glue  (halfword ltype, halfword rtype, halfword style);

extern halfword tex_math_font_char_ht  (halfword fnt, halfword chr, halfword style);
extern halfword tex_math_font_char_dp  (halfword fnt, halfword chr, halfword style);

extern void     tex_set_math_text_font (halfword style, int usefamfont);

# endif