[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: more fallback/script trials (d849d02)

Ulrike Fischer fischer at troubleshooting-tex.de
Thu Jan 30 16:44:06 CET 2020


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/d849d02400a64e99dc8adba5f20cd7ef8efa17d4

>---------------------------------------------------------------

commit d849d02400a64e99dc8adba5f20cd7ef8efa17d4
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Thu Jan 30 16:44:06 2020 +0100

    more fallback/script trials


>---------------------------------------------------------------

d849d02400a64e99dc8adba5f20cd7ef8efa17d4
 trials/multiscript-fallback.pdf | Bin 89214 -> 88071 bytes
 trials/multiscript-fallback.tex |  33 ++++++++++++++++++++++++++++++++-
 2 files changed, 32 insertions(+), 1 deletion(-)

diff --git a/trials/multiscript-fallback.pdf b/trials/multiscript-fallback.pdf
index 9150042..08d49b7 100644
Binary files a/trials/multiscript-fallback.pdf and b/trials/multiscript-fallback.pdf differ
diff --git a/trials/multiscript-fallback.tex b/trials/multiscript-fallback.tex
index 70b90d8..330923f 100644
--- a/trials/multiscript-fallback.tex
+++ b/trials/multiscript-fallback.tex
@@ -14,6 +14,15 @@
   }
  )
 
+luaotfload.add_fallback
+ ("myfallbacknoscript",
+  {
+   "DejaVuSans:mode=harf;color=FF0000;",
+   "Cambria:mode=node;color=FF0000;",
+   "NotoSansBengali:mode=harf;color=FF0000;"
+  }
+ )
+
  luaotfload.add_fallback
  ("mygreekfallback",
   {
@@ -57,13 +66,35 @@
  )
 }
 
-\newcommand\testtext{1234 a^^^^0301 π^^^^0301 a!? π123!? a БѨ123!? a \char"0995\char"09BF a „π“ a „Б“}
+\newcommand\testtext{1234 a^^^^0301 π^^^^0301 a!? π123!? a БѨ123!? a \char"1D6FC\ a \char"0995\char"09BF a „π“ a „Б“}
 \begin{document}
 red= fallback, green = bng2 multiscript, blue= beng multiscript.
+%\showoutput
 
 \begin{itemize}
 \item \testtext
 
+\item \verb+{fallback=myfallback}+:
+
+\fontspec{Latin Modern Roman}[RawFeature={fallback=myfallback}]
+\testtext
+
+\item \verb+{fallback=myfallback,multiscript=auto}+:
+
+\fontspec{Latin Modern Roman}[RawFeature={fallback=myfallback,multiscript=auto}]
+\testtext
+
+
+\item \verb+{fallback=myfallbacknoscript,multiscript=auto}+:
+
+\fontspec{Latin Modern Roman}[RawFeature={fallback=myfallbacknoscript,multiscript=auto}]
+\testtext
+
+\item \verb+{fallback=myfallbacknoscript}+:
+
+\fontspec{Latin Modern Roman}[RawFeature={fallback=myfallbacknoscript}]
+\testtext
+
 \item \verb+{multiscript=cyrl_grek_beng}+:
 
 -- Why does multiscript trigger fallback fonts?





More information about the latex3-commits mailing list.