You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.0 KiB
35 lines
1.0 KiB
-----------------------------------------------------------------------
|
|
-- FILE: luaotfload-embolden.lua
|
|
-- DESCRIPTION: part of luaotfload / embolden
|
|
-----------------------------------------------------------------------
|
|
|
|
local ProvidesLuaModule = {
|
|
name = "luaotfload-embolden",
|
|
version = "3.14", --TAGVERSION
|
|
date = "2020-05-06", --TAGDATE
|
|
description = "luaotfload submodule / color",
|
|
license = "GPL v2.0",
|
|
author = "Marcel Krüger"
|
|
}
|
|
|
|
if luatexbase and luatexbase.provides_module then
|
|
luatexbase.provides_module (ProvidesLuaModule)
|
|
end
|
|
|
|
local otffeatures = fonts.constructors.newfeatures "otf"
|
|
|
|
local function enableembolden(tfmdata, _, embolden)
|
|
tfmdata.mode, tfmdata.width = 2, tfmdata.size*embolden/6578.176
|
|
end
|
|
|
|
otffeatures.register {
|
|
name = "embolden",
|
|
description = "embolden",
|
|
manipulators = {
|
|
base = enableembolden,
|
|
node = enableembolden,
|
|
plug = enableembolden,
|
|
}
|
|
}
|
|
|
|
--- vim:sw=2:ts=2:expandtab:tw=71
|
|
|