[luatex] Reading registry to find Windows fonts

Philipp Stephani p.stephani2 at gmail.com
Sun May 31 08:41:05 CEST 2015


A few years ago I implemented a library to retrieve the list of fonts on
Windows, OS X, and Linux: https://www.ctan.org/pkg/lualatex-platform
I don't think it's widely used, but when I wrote it it worked reliably an
all three OSes (http://tracker.luatex.org/view.php?id=555), and could be
used as a starting point.

Élie Roux <elie.roux at telecom-bretagne.eu> schrieb am Sa., 30. Mai 2015 um
11:51 Uhr:

> Dear All,
>
> An issue[0] was raised recently, from a user who had fonts installed
> under Windows, recognized by his softwares but not LuaTeX (nor XeTeX).
> Apparently[1] the fonts are installed through a mechanism documented by
> MS[2] consisting in adding the font in the list of fonts in the Windows
> Registry.
>
> Lua has several modules allowing to read the registry, there's an entry
> in the FAQ[3], and another module not listed in the FAQ[4].
>
> As ConTeXt may also benefit from reading the registry (there's a ConTeXt
> user in [2]), what do you think would be the best solution to access the
> registry from LuaTeX? Should a module like lua-winreg be distributed (as
> a dll) in TeXLive? Should it be built in LuaTeX?
>
> Thank you very much,
> --
> Elie
>
> [0]: https://github.com/lualatex/luaotfload/issues/270
> [1]: http://forum.high-logic.com/viewtopic.php?f=12&t=5612&p=25551#p25552
> [2]:
>
> https://msdn.microsoft.com/en-us/library/windows/desktop/dd144833%28v=vs.85%29.aspx
> [3]: http://www.luafaq.org/#T3.7
> [4]: https://github.com/moteus/lua-winreg
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/luatex/attachments/20150531/a7826ea9/attachment-0001.html>


More information about the luatex mailing list