diff options
Diffstat (limited to 'otfl-font-msc.lua')
-rw-r--r-- | otfl-font-msc.lua | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/otfl-font-msc.lua b/otfl-font-msc.lua index cc16d3d..d7cfe20 100644 --- a/otfl-font-msc.lua +++ b/otfl-font-msc.lua @@ -7,50 +7,6 @@ if not modules then modules = { } end modules ['font-msc'] = { } --[[ - Support for font slanting and extending. ---]] - -fonts.triggers = fonts.triggers or { } -fonts.initializers = fonts.initializers or { } -fonts.initializers.common = fonts.initializers.common or { } - -local initializers, format = fonts.initializers, string.format - -table.insert(fonts.triggers,"slant") - -function fonts.initializers.common.slant(tfmdata,value) - value = tonumber(value) - if not value then - value = 0 - elseif value > 1 then - value = 1 - elseif value < -1 then - value = -1 - end - tfmdata.slant_factor = value -end - -initializers.base.otf.slant = initializers.common.slant -initializers.node.otf.slant = initializers.common.slant - -table.insert(fonts.triggers,"extend") - -function initializers.common.extend(tfmdata,value) - value = tonumber(value) - if not value then - value = 0 - elseif value > 10 then - value = 10 - elseif value < -10 then - value = -10 - end - tfmdata.extend_factor = value -end - -initializers.base.otf.extend = initializers.common.extend -initializers.node.otf.extend = initializers.common.extend - ---[[ Support for font color. --]] |