Debian Codegraph @

texmf-dist/tex/luatex/luaotfload/luaotfload-embolden.lua

raw
1 -----------------------------------------------------------------------
2 -- FILE: luaotfload-embolden.lua
3 -- DESCRIPTION: part of luaotfload / embolden
4 -----------------------------------------------------------------------
5
6 assert(luaotfload_module, "This is a part of luaotfload and should not be loaded independently") {
7 name = "luaotfload-embolden",
8 version = "3.29", --TAGVERSION
9 date = "2024-12-03", --TAGDATE
10 description = "luaotfload submodule / embolden",
11 license = "GPL v2.0",
12 author = "Marcel Krüger"
13 }
14
15 local otffeatures = fonts.constructors.newfeatures "otf"
16
17 local function enableembolden(tfmdata, _, embolden)
18 tfmdata.mode, tfmdata.width = 2, tfmdata.size*embolden/6578.176
19 end
20
21 otffeatures.register {
22 name = "embolden",
23 description = "embolden",
24 manipulators = {
25 base = enableembolden,
26 node = enableembolden,
27 plug = enableembolden,
28 }
29 }
30
31 --- vim:sw=2:ts=2:expandtab:tw=71