summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/fontspec/testsuite/F-programmers-interface.ltx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/fontspec/testsuite/F-programmers-interface.ltx')
-rw-r--r--Master/texmf-dist/source/latex/fontspec/testsuite/F-programmers-interface.ltx25
1 files changed, 25 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/fontspec/testsuite/F-programmers-interface.ltx b/Master/texmf-dist/source/latex/fontspec/testsuite/F-programmers-interface.ltx
new file mode 100644
index 00000000000..c9ec65bc928
--- /dev/null
+++ b/Master/texmf-dist/source/latex/fontspec/testsuite/F-programmers-interface.ltx
@@ -0,0 +1,25 @@
+
+\documentclass{testsuite}
+\usepackage{fontspec}
+\begin{document}
+\ExplSyntaxOn
+LM~is
+\fontspec_if_fontspec_font:TF {\ERROR}{~not~a~fontspec~font.\par}
+
+\setmainfont{TeX~ Gyre~ Pagella}
+TeX Gyre Pagella
+\fontspec_if_fontspec_font:TF {~is~a~fontspec~font}{\ERROR}
+
+\fontspec_if_opentype:TF {,~is~OpenType}{\ERROR}
+
+\fontspec_if_feature:nTF {smcp}{,~has~small~caps}{\ERROR}
+
+\fontspec_if_current_script:nTF {latn}{,~is~using~Latin~script}{\ERROR}
+
+\fontspec_if_script:nTF {cyrl}{,~also~has~Cyrillic}{\ERROR}
+
+\fontspec_if_current_language:nTF {DFLT}{,~is~using~`default'~language}{\ERROR}
+
+\fontspec_if_language:nnTF {latn}{ROM}{,~also~has~Romanian}{\ERROR}
+
+\end{document} \ No newline at end of file