summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/luatex/luaotfload
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-09-10 23:47:12 +0000
committerKarl Berry <karl@freefriends.org>2009-09-10 23:47:12 +0000
commitbfd31432fa7c95ab364bf41ef873316bcb7fd110 (patch)
treed9a45de2ff06f2bf78f4219d949876f9f5b9b9e6 /Master/texmf-dist/source/luatex/luaotfload
parent7298be8132f40929ef494d46a50a0aa8110f8c8e (diff)
luaotfload 1.04 (10sep09)
git-svn-id: svn://tug.org/texlive/trunk@15216 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/luatex/luaotfload')
-rw-r--r--Master/texmf-dist/source/luatex/luaotfload/luaotfload.dtx31
1 files changed, 24 insertions, 7 deletions
diff --git a/Master/texmf-dist/source/luatex/luaotfload/luaotfload.dtx b/Master/texmf-dist/source/luatex/luaotfload/luaotfload.dtx
index ead895561a0..0c80fcca081 100644
--- a/Master/texmf-dist/source/luatex/luaotfload/luaotfload.dtx
+++ b/Master/texmf-dist/source/luatex/luaotfload/luaotfload.dtx
@@ -34,7 +34,7 @@
\input docstrip.tex
\Msg{************************************************************************}
\Msg{* Installation}
-\Msg{* Package: luaotfload 2009/08/10 v1.03 ConTeXt font loading system}
+\Msg{* Package: luaotfload 2009/09/10 v1.04 ConTeXt font loading system}
\Msg{************************************************************************}
\keepsilent
@@ -100,7 +100,7 @@ and the derived files
%<*driver>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{luaminimalotf.drv}%
- [2009/08/10 v1.03 ConTeXt font loading system]%
+ [2009/09/10 v1.04 ConTeXt font loading system]%
\documentclass{ltxdoc}
\EnableCrossrefs
\CodelineIndex
@@ -131,7 +131,7 @@ and the derived files
% \GetFileInfo{luaotfload.drv}
%
% \title{The \textsf{luaotfload} package}
-% \date{2009/08/10 v1.03}
+% \date{2009/09/10 v1.04}
% \author{Elie Roux \\ \texttt{elie.roux@telecom-bretagne.eu}}
%
% \maketitle
@@ -224,8 +224,8 @@ luaotfload = { }
luaotfload.module = {
name = "luaotfload",
- version = 1.03,
- date = "2009/08/10",
+ version = 1.04,
+ date = "2009/09/10",
description = "ConTeXt font loading system.",
author = "Elie Roux & Hans Hagen",
copyright = "Elie Roux",
@@ -420,6 +420,21 @@ fonts.enc.known = {}
% \end{macrocode}
%
+% We have to register a function in the |find_vf_file| callback in order to make everything work.
+%
+% \begin{macrocode}
+
+function luaotfload.find_vf_file(name)
+ name = file.removesuffix(file.basename(name))
+ local result = kpse.find_file(name, "vf") or ""
+ if result == "" then
+ result = kpse.find_file(name, "ovf") or ""
+ end
+ return result
+end
+
+% \end{macrocode}
+%
% Finally two functions
%
% \begin{macrocode}
@@ -428,13 +443,15 @@ function luaotfload.register_callbacks()
callback.add('pre_linebreak_filter', nodes.simple_font_handler, 'luaotfload.pre_linebreak_filter')
callback.add('hpack_filter', nodes.simple_font_handler, 'luaotfload.hpack_filter')
callback.reset('define_font')
- callback.add('define_font' , fonts.define.read, 'luaotfload.define_font', 1)
+ callback.add('define_font', fonts.define.read, 'luaotfload.define_font', 1)
+ callback.add('find_vf_file', luaotfload.find_vf_file, 'luaotfload.find_vf_file')
end
function luaotfload.unregister_callbacks()
callback.remove('pre_linebreak_filter', 'luaotfload.pre_linebreak_filter')
callback.remove('hpack_filter', 'luaotfload.hpack_filter')
callback.remove('define_font', 'luaotfload.define_font')
+ callback.remove('find_vf_file', 'luaotfload.find_vf_file')
end
% \end{macrocode}
% \iffalse
@@ -458,7 +475,7 @@ end
\else
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{luaotfload}%
- [2009/08/10 v1.03 ConTeXt font loading system]
+ [2009/09/10 v1.04 ConTeXt font loading system]
\RequirePackage{luatextra}
\fi