summaryrefslogtreecommitdiff
path: root/luaotfload.dtx
diff options
context:
space:
mode:
authorElie Roux <elie.roux@telecom-bretagne.eu>2013-04-19 18:29:23 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-04-22 16:11:25 +0200
commit9c573708a2e74b51062fc5cef728790dd85f66d6 (patch)
treed8d7bb9399597ffbc2a3b2d8b2c68166929e9399 /luaotfload.dtx
parentb4ae5d25bd724b449e76c9bd273670826f7bd01d (diff)
downloadluaotfload-9c573708a2e74b51062fc5cef728790dd85f66d6.tar.gz
Documenting and simplifying ofm font bug handling
Conflicts: luaotfload.dtx
Diffstat (limited to 'luaotfload.dtx')
-rw-r--r--luaotfload.dtx44
1 files changed, 14 insertions, 30 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx
index 07035a4..0025e2f 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -1085,11 +1085,12 @@ end
% \end{macrocode}
%
-%
-% Virtual fonts are resolved via a callback.
-% \luafunction{find_vf_file} derives the name of the virtual font file
-% from the filename.
-% (NB: \CONTEXT handles this likewise in \fileent{font-vf.lua}.)
+% Before \TeX Live 2013 version, \LUATEX had a bug that made ofm fonts fail
+% when called with their extension. There was a side-effect making ofm
+% totally unloadable when luaotfload was present. The following lines are
+% a patch for this bug. The utility of these lines is questionable as they
+% are not necessary since \TeX Live 2013. They should be removed in the next
+% version.
%
% \begin{macrocode}
local Cs, P, lpegmatch = lpeg.Cs, lpeg.P, lpeg.match
@@ -1315,33 +1316,16 @@ loadmodule"luat-ovr.lua"
% \end{macrocode}
%
%
-% We aim at reducing the clutter on the terminal, so there is a range of
-% logging thresholds.
-% (See \fileent{luaotfload-luat-ovr.lua} for the implementation.)
-% Each log/report is assigned an integer parameter determining the log
-% level at or above which it will appear.
-% The default is “1”, and though there is no fixed upper bound,
-% meaningful values should not exceed five.
+% \CONTEXT does not support ofm, these lines were added in order to make it
+% work. However they do not seem necessary so they are commented for now.
%
% \begin{macrocode}
-logs.set_loglevel(3)
-
-if fonts and fonts.readers.tfm then
- --------------------------------------------------------------------
- --- OFM; read this first
- --------------------------------------------------------------------
- --- I can’t quite make out whether this is still relevant
- --- as those ofm fonts always fail, even in the 2011 version
- --- (mktexpk: don't know how to create bitmap font for omarabb.ofm)
- --- the font loader appears to read ofm like tfm so if this
- --- hack was supposed achieve that, we should excise it anyways
- fonts.readers.ofm = fonts.readers.tfm
- fonts.handlers.ofm = fonts.handlers.tfm --- empty anyways
- fonts.formats.ofm = fonts.formats.tfm --- “type1”
- --- fonts.readers.sequence[#fonts.readers.sequence+1] = "ofm"
- --------------------------------------------------------------------
-end
-
+-- if fonts and fonts.readers.tfm then
+-- fonts.readers.ofm = fonts.readers.tfm
+-- fonts.handlers.ofm = fonts.handlers.tfm --- empty anyways
+-- fonts.formats.ofm = fonts.formats.tfm --- “type1”
+-- --- fonts.readers.sequence[#fonts.readers.sequence+1] = "ofm"
+--end
% \end{macrocode}
%
%