summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/font-one.lua
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2016-05-14 03:10:20 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2016-05-14 03:10:20 +0200
commitb29553f008e315297b56570fa5ef303b1fda39d1 (patch)
tree0d44d3fa5d4be3e98411703f1566b70d71b5c0c4 /tex/context/base/mkiv/font-one.lua
parentc364453fcfff40c1a300b4b6d45bfe25257f8e8d (diff)
downloadcontext-b29553f008e315297b56570fa5ef303b1fda39d1.tar.gz
2016-05-14 02:25:00
Diffstat (limited to 'tex/context/base/mkiv/font-one.lua')
-rw-r--r--tex/context/base/mkiv/font-one.lua14
1 files changed, 11 insertions, 3 deletions
diff --git a/tex/context/base/mkiv/font-one.lua b/tex/context/base/mkiv/font-one.lua
index 5d54150c5..631a5e56c 100644
--- a/tex/context/base/mkiv/font-one.lua
+++ b/tex/context/base/mkiv/font-one.lua
@@ -55,7 +55,7 @@ local otfenhancers = otf.enhancers
local afmfeatures = constructors.newfeatures("afm")
local registerafmfeature = afmfeatures.register
-afm.version = 1.510 -- incrementing this number one up will force a re-cache
+afm.version = 1.511 -- incrementing this number one up will force a re-cache
afm.cache = containers.define("fonts", "afm", afm.version, true)
afm.autoprefixed = true -- this will become false some day (catches texnansi-blabla.*)
@@ -92,6 +92,11 @@ and <l n='otf'/> reader.</p>
and new vectors (we actually had one bad vector with the old loader).</p>
--ldx]]--
+-- StartComposites 55
+-- CC Aacute 2 ; PCC A 0 0 ; PCC acute 83 157 ;
+-- CC Acircumflex 2 ; PCC A 0 0 ; PCC circumflex 71 157 ;
+-- CC Adieresis 2 ; PCC A 0 0 ; PCC dieresis 71 157 ;
+
local get_indexes
do
@@ -183,7 +188,10 @@ do
local vector = lpegmatch(p_filternames,binary)
- vector[0] = table.remove(vector,1)
+ if vector[1] == ".notdef" then
+ -- tricky
+ vector[0] = table.remove(vector,1)
+ end
if not vector then
print("no vector",filename)
@@ -245,7 +253,7 @@ do -- no need for a further speedup with locals
local spacing = patterns.spacer
local lineend = patterns.newline
- local number = spacing * (R("09") + S("."))^1 / tonumber
+ local number = spacing * S("+-")^-1 * (R("09") + S("."))^1 / tonumber
local name = spacing * C((1-spacing)^1)
local words = spacing * (1 - lineend)^1 / strip
local rest = (1 - lineend)^0