diff options
author | Karl Berry <karl@freefriends.org> | 2010-07-16 22:27:42 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-07-16 22:27:42 +0000 |
commit | 4a6deb4256d4af4b3d74940d449b335fac09ddd4 (patch) | |
tree | 548f79eb8266fb4462c51a057ef54149082343ab /Master/texmf-dist/source | |
parent | d1a48791cba8d3ab5acf5040cdeb64d81939c58d (diff) |
luaotfload update (15jul10)
git-svn-id: svn://tug.org/texlive/trunk@19484 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r-- | Master/texmf-dist/source/luatex/luaotfload/luaotfload.dtx | 64 |
1 files changed, 51 insertions, 13 deletions
diff --git a/Master/texmf-dist/source/luatex/luaotfload/luaotfload.dtx b/Master/texmf-dist/source/luatex/luaotfload/luaotfload.dtx index 6c68db17c03..7defe35ae7d 100644 --- a/Master/texmf-dist/source/luatex/luaotfload/luaotfload.dtx +++ b/Master/texmf-dist/source/luatex/luaotfload/luaotfload.dtx @@ -35,7 +35,7 @@ \input docstrip.tex \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: luaotfload 2010/07/12 v1.16 ConTeXt font loading system} +\Msg{* Package: luaotfload 2010/07/15 v1.18 OpenType layout system} \Msg{************************************************************************} \keepsilent @@ -102,10 +102,23 @@ and the derived files %<*driver> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{luaotfload.drv}% - [2010/07/12 v1.16 ConTeXt font loading system]% + [2010/07/15 v1.18 OpenType layout system]% \documentclass{ltxdoc} -\usepackage{metalogo,multicol,mdwlist,fancyvrb} -\usepackage[colorlinks=true]{hyperref} +\usepackage{metalogo,multicol,mdwlist,fancyvrb,xcolor} +\usepackage{charter} +\usepackage[ + bookmarks=true, + colorlinks=true, + linkcolor=niceblue, +% urlcolor=niceblue, + citecolor=niceblue, + pdftitle={The luaotfload package}, + pdfsubject={OpenType layout system for Plain TeX and LaTeX}, + pdfauthor={Elie Roux & Khaled Hosny}, + pdfkeywords={luatex, lualatex, unicode, opentype} + ]{hyperref} + +\definecolor{niceblue}{rgb}{0.4,0.6,1.000} \def\LuaTeX{Lua\TeX} \def\ConTeXt{Con\TeX t} @@ -140,7 +153,7 @@ and the derived files % \GetFileInfo{luaotfload.drv} % % \title{The \textsf{luaotfload} package} -% \date{2010/07/12 v1.16} +% \date{2010/07/15 v1.18} % \author{ Elie Roux\footnote{\texttt{elie.roux@telecom-bretagne.eu}} % \and Khaled Hosny\footnote{\texttt{khaledhosny@eglug.org}}} % @@ -437,9 +450,9 @@ module('luaotfload', package.seeall) luaotfload.module = { name = "luaotfload", - version = 1.15, - date = "2010/07/12", - description = "ConTeXt font loading system.", + version = 1.18, + date = "2010/07/15", + description = "OpenType layout system.", author = "Elie Roux & Hans Hagen", copyright = "Elie Roux", license = "CC0" @@ -651,14 +664,20 @@ local function def_font(...) % % \begin{macrocode} if otfdata.metadata.math then + local mc = { } for k,v in next, otfdata.metadata.math do - if k == "RadicalDegreeBottomRaisePercent" then - -- this is a percent - fontdata.MathConstants[k] = v + if k:find("Percent") then + -- keep percent values as is + mc[k] = v else - fontdata.MathConstants[k] = v / units * size + mc[k] = v / units * size end end + -- for \overwithdelims + mc["FractionDelimiterSize"] = 1.01 * size + mc["FractionDelimiterDisplayStyleSize"] = 2.39 * size + + fontdata.MathConstants = mc end end @@ -676,6 +695,25 @@ fonts.mode = "node" % \end{macrocode} % +% The following features are useful in math (e.g. in XITS Math font), +% but \textsf{luaotfload} does not recognize them in |base| mode. +% +% \begin{macrocode} + +local register_base_sub = fonts.otf.features.register_base_substitution +local gsubs = { + "ss01", "ss02", "ss03", "ss04", "ss05", + "ss06", "ss07", "ss08", "ss09", "ss10", + "ss11", "ss12", "ss13", "ss14", "ss15", + "ss16", "ss17", "ss18", "ss19", "ss20", +} + +for _,v in next, gsubs do + register_base_sub(v) +end + +% \end{macrocode} +% % Finally two functions % % \begin{macrocode} @@ -729,7 +767,7 @@ end \else \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{luaotfload}% - [2010/07/12 v1.16 ConTeXt font loading system] + [2010/07/15 v1.18 OpenType layout system] \RequirePackage{luatextra} \fi |