From fc4ceb016698207125b66ab35af1e306b117993c Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Fri, 12 Feb 2010 15:04:43 +0200 Subject: Updating to latest ConTeXt beta (2010.02.12) This introduces microtypography support. Test: \input luaotfload.sty \pdfprotrudechars2 \pdfadjustspacing2 \font\testa=file:lmroman12-regular:script=latn at 12pt \font\testb=file:lmroman12-regular:script=latn;protrusion=default at 12pt \testa \input tufte \par \testb \input tufte \par \bye closes #7 --- otfl-font-msc.lua | 44 -------------------------------------------- 1 file changed, 44 deletions(-) (limited to 'otfl-font-msc.lua') 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 @@ -6,50 +6,6 @@ if not modules then modules = { } end modules ['font-msc'] = { license = "GPL" } ---[[ - 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. --]] -- cgit v1.2.3