summaryrefslogtreecommitdiff
path: root/luaotfload.dtx
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-07-11 15:59:53 +0300
committerKhaled Hosny <khaledhosny@eglug.org>2010-07-11 16:01:33 +0300
commit5eb463020c94b064e1032a4aff2eefc82a58f495 (patch)
treea3228a657bb467abf4d918664122680fc86366fb /luaotfload.dtx
parentcc31922e8a821435379190ec965d7a548c9c41eb (diff)
downloadluaotfload-5eb463020c94b064e1032a4aff2eefc82a58f495.tar.gz
Move code around
Move code that does not belong to otfl-font-nms.lua to luaotfload.dtx. Please test.
Diffstat (limited to 'luaotfload.dtx')
-rw-r--r--luaotfload.dtx25
1 files changed, 25 insertions, 0 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx
index a6e90c0..1fa1e7c 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -449,6 +449,18 @@ luatexbase.provides_module(luaotfload.module)
% \end{macrocode}
%
+% This is a necessary initalization in order not to rebuild an existing font.
+% Maybe 600 should be replaced by |\pdfpkresolution| or |texconfig.pk_dpi|
+% (and it should be replaced dynamically), but we don't have access (yet) to
+% the |texconfig| table, so we let it be 600. Anyway, it does still work
+% fine even if |\pdfpkresolution| is changed.
+%
+% \begin{macrocode}
+
+kpse.init_prog('', 600, '/')
+
+% \end{macrocode}
+%
% Some helper functions.
%
% \begin{macrocode}
@@ -575,6 +587,19 @@ luaotfload.loadmodule('font-dum.lua')
% \end{macrocode}
%
+% This is a patch for |otfl-font-def.lua|, that defines a reader for ofm
+% fonts, this is necessary if we set the forced field of the specification
+% to |ofm|, we use it only when using \textsf{luaotfload}, not
+% |mkluatexfontdb|.
+%
+% \begin{macrocode}
+
+if fonts and fonts.tfm and fonts.tfm.readers then
+ fonts.tfm.readers.ofm = fonts.tfm.readers.tfm
+end
+
+% \end{macrocode}
+%
% \textsf{luaotfload} specific modules.
%
% \begin{macrocode}