blob: 08d57d644d20fccc8211fc7f44e713905f4e789d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
local harf = require("harf-base")
local define_font = require("harf-load")
local harf_node = require("harf-node")
harf.callbacks = {
define_font = define_font,
pre_linebreak_filter = harf_node.process,
hpack_filter = harf_node.process,
pre_output_filter = harf_node.post_process,
wrapup_run = harf_node.cleanup,
get_char_tounicode = harf_node.get_tounicode,
get_glyph_string = harf_node.get_glyph_string,
}
return harf
|