summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/luatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-02-06 23:22:37 +0000
committerKarl Berry <karl@freefriends.org>2014-02-06 23:22:37 +0000
commit716db3d36d52aeaff3226edb6c3bcd52b8478394 (patch)
tree152feb0630b11ceb311b79daa3c042b0c261805a /Master/texmf-dist/tex/luatex
parent2385abbf2b7e9cee66fd032dcc7ca204808f1135 (diff)
luaotfload (6feb14)
git-svn-id: svn://tug.org/texlive/trunk@32887 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex')
-rw-r--r--Master/texmf-dist/tex/luatex/luaotfload/luaotfload-database.lua33
-rw-r--r--Master/texmf-dist/tex/luatex/luaotfload/luaotfload-override.lua6
-rw-r--r--Master/texmf-dist/tex/luatex/luaotfload/luaotfload-status.lua12
-rw-r--r--Master/texmf-dist/tex/luatex/luaotfload/luaotfload.lua8
-rw-r--r--Master/texmf-dist/tex/luatex/luaotfload/luaotfload.sty4
5 files changed, 42 insertions, 21 deletions
diff --git a/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-database.lua b/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-database.lua
index 9d7d9121d4c..cb3ec330e35 100644
--- a/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-database.lua
+++ b/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-database.lua
@@ -132,7 +132,7 @@ luaotfloadconfig.compress = luaotfloadconfig.compress ~= false
local names = fonts.names
local name_index = nil --> upvalue for names.data
local lookup_cache = nil --> for names.lookups
-names.version = 2.4
+names.version = 2.41
names.data = nil --- contains the loaded database
names.lookups = nil --- contains the lookup cache
@@ -1070,9 +1070,10 @@ local resolve_fontname = function (specification, name, style)
local face = mappings [i]
local prefmodifiers = face.prefmodifiers
local subfamily = face.subfamily
- if face.fontname == name
- or face.fullname == name
- or face.psname == name
+ if face.fontname == name
+ or face.splainname == name
+ or face.fullname == name
+ or face.psname == name
then
return face.basename, face.subfont
elseif face.familyname == name then
@@ -1394,16 +1395,26 @@ local get_english_names = function (names, basename)
report("log", 1, "db",
"Broken font %s rejected due to missing names table.",
basename)
- return nil
end
- return english_names
+ return english_names or { }
end
local organize_namedata = function (metadata,
english_names,
basename,
info)
+ local default_name = english_names.compatfull
+ or english_names.fullname
+ or english_names.postscriptname
+ or metadata.fullname
+ or metadata.fontname
+ or info.fullname --- TODO check if fontloader.info() is ready for prime
+ or info.fontname
+ local default_family = english_names.preffamily
+ or english_names.family
+ or metadata.familyname
+ or info.familyname
local fontnames = {
--- see
--- https://developer.apple.com/fonts/TTRefMan/RM06/Chap6name.html
@@ -1419,14 +1430,15 @@ local organize_namedata = function (metadata,
--- However, in some fonts (e.g. CMU) all three fields are
--- identical.
fullname = --[[ 18 ]] english_names.compatfull
- or --[[ 4 ]] english_names.fullname,
+ or --[[ 4 ]] english_names.fullname
+ or default_name,
--- we keep both the “preferred family” and the “family”
--- values around since both are valid but can turn out
--- quite differently, e.g. with Latin Modern:
--- preffamily: “Latin Modern Sans”,
--- family: “LM Sans 10”
preffamily = --[[ 16 ]] english_names.preffamilyname,
- family = --[[ 1 ]] english_names.family,
+ family = --[[ 1 ]] english_names.family or default_family,
prefmodifiers = --[[ 17 ]] english_names.prefmodifiers,
subfamily = --[[ 2 ]] english_names.subfamily,
psname = --[[ 6 ]] english_names.postscriptname,
@@ -1608,6 +1620,7 @@ t1_fullinfo = function (filename, _subfont, location, basename, format)
fontname = sanitized.fontname,
familyname = sanitized.familyname,
plainname = fullname,
+ splainname = sanitized.fullname,
psname = sanitized.fontname,
version = metadata.version,
size = false,
@@ -2775,6 +2788,7 @@ local pull_values = function (entry)
entry.psname = english.psname
entry.fontname = info.fontname
entry.fullname = english.fullname or info.fullname
+ entry.splainname = metadata.fullname
entry.prefmodifiers = english.prefmodifiers
local metafamily = metadata.familyname
local familyname = english.preffamily or english.family
@@ -2800,6 +2814,9 @@ local pull_values = function (entry)
end
local add_family = function (name, subtable, modifier, entry)
+ if not name then
+ return
+ end
local familytable = subtable [name]
if not familytable then
familytable = { }
diff --git a/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-override.lua b/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-override.lua
index b1773fa0406..fe70dcb4209 100644
--- a/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-override.lua
+++ b/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-override.lua
@@ -166,6 +166,8 @@ if texjob == true then
statusln = function (str)
if first_status == false then
iowrite (kill_line)
+ else
+ iowrite "\n"
end
iowrite (str)
end
@@ -326,7 +328,9 @@ end
local status_stop = function (...)
if first_status == false then
status_writer(...)
- writeln ""
+ if texjob == false then
+ writeln ""
+ end
end
end
diff --git a/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-status.lua b/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-status.lua
index 33b68e79aca..4d63544b6e1 100644
--- a/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-status.lua
+++ b/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-status.lua
@@ -3,10 +3,10 @@ return {
{ "mkstatus", "51af30205d30c2b7f5bfd5169d9911a0" },
{ "mkglyphlist", "a8d64d29927ad8aebd1280a11d335895" },
{ "mkcharacters", "f25363cbe04fc5f1210930a10635247f" },
- { "luaotfload-tool.lua", "eb34dc11cc91c01de4626bba5ff9ae17" },
- { "luaotfload-override.lua", "b878d157af7147e30a067a41d3ea3cfe" },
+ { "luaotfload-tool.lua", "978fc97d7f3e60cc36a56e4375aabebb" },
+ { "luaotfload-override.lua", "d0e40ea83d625813aa0fe2f9e76d8ef5" },
{ "luaotfload-fontloader.lua", "21b625efe6630b76250e18f7d2832cff" },
- { "luaotfload.lua", "c12b302cc953e59476c6cf6ca129a233" },
+ { "luaotfload.lua", "fe691a3a26e3d2dc8d9a04df63e8fe68" },
{ "luaotfload-loaders.lua", "b04c6d9aa2974d56895fe3dff3fea90d" },
{ "luaotfload-letterspace.lua", "19e6181076dda7c8c34e7096cee1f873" },
{ "luaotfload-glyphlist.lua", "ff440162d1b8a78a586375ee65630c21" },
@@ -18,7 +18,7 @@ return {
{ "luaotfload-fonts-cbk.lua", "c1b7a4e5508d68f45a99cdc38c2d0885" },
{ "luaotfload-features.lua", "0d97a50852fb55be4133874c8f487832" },
{ "luaotfload-diagnostics.lua", "eed12e7b7fe6545daa6786fed1405a4f" },
- { "luaotfload-database.lua", "0ddcdd44409cad8cf4c206d5e8d40e31" },
+ { "luaotfload-database.lua", "db8d9e939910a7fce9b811546edd95c2" },
{ "luaotfload-colors.lua", "248c4c42586c17e934a4d046c3c873b9" },
{ "luaotfload-characters.lua", "2673ffb19e8505af4782aad437a76a4f" },
{ "luaotfload-basics-nod.lua", "d6b26ec86c0b1c1516936b425df04432" },
@@ -27,7 +27,7 @@ return {
},
["notes"]={
["committer"]="Philipp Gesang <phg42.2a@gmail.com>",
- ["revision"]="5b26498993e9e0e9ba4759ceb3976b17f42d1413",
- ["timestamp"]="2014-01-03 18:17:16 +0100",
+ ["revision"]="bd307a8fe8047d322317037c1a832720c236fb48",
+ ["timestamp"]="2014-02-05 21:06:28 +0100",
},
} \ No newline at end of file
diff --git a/Master/texmf-dist/tex/luatex/luaotfload/luaotfload.lua b/Master/texmf-dist/tex/luatex/luaotfload/luaotfload.lua
index 73fb0172a1d..bbfe444eb9f 100644
--- a/Master/texmf-dist/tex/luatex/luaotfload/luaotfload.lua
+++ b/Master/texmf-dist/tex/luatex/luaotfload/luaotfload.lua
@@ -7,7 +7,7 @@
-- luaotfload.dtx (with options: `lua')
-- This is a generated file.
--
--- Copyright (C) 2009-2013
+-- Copyright (C) 2009-2014
-- by Elie Roux <elie.roux@telecom-bretagne.eu>
-- and Khaled Hosny <khaledhosny@eglug.org>
-- and Philipp Gesang <philipp.gesang@alumni.uni-heidelberg.de>
@@ -30,7 +30,7 @@ config.luaotfload = config.luaotfload or { }
config.luaotfload.resolver = config.luaotfload.resolver or "cached"
config.luaotfload.definer = config.luaotfload.definer or "patch"
config.luaotfload.compatibility = config.luaotfload.compatibility or false
-config.luaotfload.loglevel = config.luaotfload.loglevel or 1
+config.luaotfload.loglevel = config.luaotfload.loglevel or 2
config.luaotfload.color_callback = config.luaotfload.color_callback or "pre_linebreak_filter"
config.luaotfload.prioritize = config.luaotfload.prioritize or "sys"
config.luaotfload.names_dir = config.luaotfload.names_dir or "names"
@@ -43,8 +43,8 @@ end
luaotfload.module = {
name = "luaotfload",
- version = 2.40003,
- date = "2013/12/28",
+ version = 2.40004, --- 2.4-3
+ date = "2014/02/05",
description = "OpenType layout system.",
author = "Elie Roux & Hans Hagen",
copyright = "Elie Roux",
diff --git a/Master/texmf-dist/tex/luatex/luaotfload/luaotfload.sty b/Master/texmf-dist/tex/luatex/luaotfload/luaotfload.sty
index 6a5afdba02d..6228a3ef2a0 100644
--- a/Master/texmf-dist/tex/luatex/luaotfload/luaotfload.sty
+++ b/Master/texmf-dist/tex/luatex/luaotfload/luaotfload.sty
@@ -7,7 +7,7 @@
%% luaotfload.dtx (with options: `package')
%% This is a generated file.
%%
-%% Copyright (C) 2009-2013
+%% Copyright (C) 2009-2014
%% by Elie Roux <elie.roux@telecom-bretagne.eu>
%% and Khaled Hosny <khaledhosny@eglug.org>
%% and Philipp Gesang <philipp.gesang@alumni.uni-heidelberg.de>
@@ -29,7 +29,7 @@
\else
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{luaotfload}%
- [2013/12/28 v2.4 OpenType layout system]
+ [2014/02/05 v2.4-3 OpenType layout system]
\RequirePackage{luatexbase}
\fi
\ifnum\luatexversion<76