From 1d871e6152c1acfa01db6fd90ee809274b9f8751 Mon Sep 17 00:00:00 2001 From: Elie Roux Date: Mon, 29 Apr 2013 15:42:56 +0200 Subject: Merging pull request #18 --- tests/fontconfig_conf_reading.tex | 8 ++++--- tests/fonts.conf.test | 44 ++++++++++++++++++++++----------------- tests/weirdfonts.tex | 15 +++++++++++++ 3 files changed, 45 insertions(+), 22 deletions(-) create mode 100644 tests/weirdfonts.tex (limited to 'tests') diff --git a/tests/fontconfig_conf_reading.tex b/tests/fontconfig_conf_reading.tex index dbbbc3c..66ab377 100644 --- a/tests/fontconfig_conf_reading.tex +++ b/tests/fontconfig_conf_reading.tex @@ -1,6 +1,8 @@ \directlua{ -require("lualibs") -require("otfl-font-nms.lua") -texio.write_nl(table.serialize(fonts.names.read_fonts_conf("fonts.conf.test", {}))) + config = { lualibs = { load_extended = false } } + require"lualibs" + require"luaotfload-database" + local results = fonts.names.read_fonts_conf{"fonts.conf.test"} + inspect(results) } \bye diff --git a/tests/fonts.conf.test b/tests/fonts.conf.test index 0e5b961..3c3e132 100644 --- a/tests/fonts.conf.test +++ b/tests/fonts.conf.test @@ -1,19 +1,25 @@ - - - - - - -test 1 ok -test 2 oktest 3 ok -test 4 oktest 5 ok - -/etc/fonts/conf.d -/etc/fonts/fonts.conf -/etc/fonts/conf.d/69-unifont.conf + + + + + + + + + + + fontconfig/fonts.conf + test 1 ok + test 2 oktest 3 ok + test 4 oktest 5 ok + + /etc/fonts/conf.d + /etc/fonts/fonts.conf + /etc/fonts/conf.d/69-unifont.conf + diff --git a/tests/weirdfonts.tex b/tests/weirdfonts.tex new file mode 100644 index 0000000..9cbf8ac --- /dev/null +++ b/tests/weirdfonts.tex @@ -0,0 +1,15 @@ +%% non-standard fonts deserve an extra test file +\documentclass{scrartcl} +\usepackage{fontspec} +%% ···································································· +%% libertine monospace +%% ------------------- +%% real-world example from: http://tex.stackexchange.com/q/110566 +%% causing database lookups to fail; addressed in luaotfload since +%% https://github.com/phi-gamma/luaotfload/commit/4d0d2c19ab36d4918a72041a087fbcb451ac8c52 +\setmonofont{Linux Libertine Mono O} +%% ···································································· + +\begin{document} + foo {\ttfamily bar} baz +\end{document} -- cgit v1.2.3