diff options
author | Karl Berry <karl@freefriends.org> | 2010-06-09 00:22:21 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-06-09 00:22:21 +0000 |
commit | e75495f92d91038a568dec3fd1cc854d51daf4c7 (patch) | |
tree | 99417371e2a2c104d8082b24e8f1a0faef2be81e /Master/texmf-dist/source/latex/fontspec/testsuite | |
parent | aac86e6df7bc5de903798b0c8a7f6b49cf4e9b75 (diff) |
fontspec v2 (8jun10)
git-svn-id: svn://tug.org/texlive/trunk@18825 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/fontspec/testsuite')
12 files changed, 140 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/fontspec/testsuite/L001a.ltx b/Master/texmf-dist/source/latex/fontspec/testsuite/L001a.ltx new file mode 100644 index 00000000000..538604c1e0b --- /dev/null +++ b/Master/texmf-dist/source/latex/fontspec/testsuite/L001a.ltx @@ -0,0 +1,7 @@ + +\documentclass{testsuite} +\usepackage{fontspec} +\setmainfont{TeX Gyre Pagella} +\begin{document} +Hello, moon! +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/source/latex/fontspec/testsuite/L002a.ltx b/Master/texmf-dist/source/latex/fontspec/testsuite/L002a.ltx new file mode 100644 index 00000000000..79f1c0dc2dd --- /dev/null +++ b/Master/texmf-dist/source/latex/fontspec/testsuite/L002a.ltx @@ -0,0 +1,16 @@ + +\documentclass{testsuite} +\usepackage{fontspec} +\setmainfont[Color=FF0000]{Georgia} +\def\1{abcABC}\def\2{XYZxyz} +\def\test{\1\textsf{\2}\1\\} +\begin{document} +\setsansfont{Verdana} +\test +\setsansfont[Scale=0.5]{Verdana} +\test +\setsansfont[Scale=MatchLowercase]{Verdana} +\test +\setsansfont[Scale=MatchUppercase]{Verdana} +\test +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/source/latex/fontspec/testsuite/L003a.ltx b/Master/texmf-dist/source/latex/fontspec/testsuite/L003a.ltx new file mode 100644 index 00000000000..b0d4b43aa6b --- /dev/null +++ b/Master/texmf-dist/source/latex/fontspec/testsuite/L003a.ltx @@ -0,0 +1,13 @@ +\documentclass{testsuite} +\usepackage{fontspec} +\usepackage{xcolor} +\begin{document} +{\fontspec[Color=5500FF]{Verdana}Test} + +{\fontspec[Color=red]{Verdana}Test} vs +{\color{red}\fontspec{Verdana}Test} + +\definecolor{Foo}{rgb}{0.3,0.4,0.5} +{\fontspec[Color=Foo]{Verdana}Test} vs +{\color{Foo}\fontspec{Verdana}Test} +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/source/latex/fontspec/testsuite/L003b.ltx b/Master/texmf-dist/source/latex/fontspec/testsuite/L003b.ltx new file mode 100644 index 00000000000..8e9052dd6fb --- /dev/null +++ b/Master/texmf-dist/source/latex/fontspec/testsuite/L003b.ltx @@ -0,0 +1,12 @@ +\documentclass{testsuite} +\usepackage{fontspec} +\usepackage{xcolor} +\begin{document} +\fontspec[Color=red]{Verdana} +Test + +\fontspec[ + Color=red,Opacity=0.5 + ]{Verdana} +Test +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/source/latex/fontspec/testsuite/L005a.ltx b/Master/texmf-dist/source/latex/fontspec/testsuite/L005a.ltx new file mode 100644 index 00000000000..0a9f5b9e69f --- /dev/null +++ b/Master/texmf-dist/source/latex/fontspec/testsuite/L005a.ltx @@ -0,0 +1,9 @@ +\documentclass{testsuite} +\usepackage{fontspec} +\begin{document} +\Huge +\fontspec{Junicode} +Before +\addfontfeature{StylisticSet=6} +After +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/source/latex/fontspec/testsuite/X001a.ltx b/Master/texmf-dist/source/latex/fontspec/testsuite/X001a.ltx new file mode 100644 index 00000000000..d97035602fd --- /dev/null +++ b/Master/texmf-dist/source/latex/fontspec/testsuite/X001a.ltx @@ -0,0 +1,7 @@ + +\documentclass{testsuite} +\usepackage{fontspec} +\setmainfont{TeX Gyre Pagella} +\begin{document} +Hello, sun! +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/source/latex/fontspec/testsuite/X002a.ltx b/Master/texmf-dist/source/latex/fontspec/testsuite/X002a.ltx new file mode 100644 index 00000000000..79f1c0dc2dd --- /dev/null +++ b/Master/texmf-dist/source/latex/fontspec/testsuite/X002a.ltx @@ -0,0 +1,16 @@ + +\documentclass{testsuite} +\usepackage{fontspec} +\setmainfont[Color=FF0000]{Georgia} +\def\1{abcABC}\def\2{XYZxyz} +\def\test{\1\textsf{\2}\1\\} +\begin{document} +\setsansfont{Verdana} +\test +\setsansfont[Scale=0.5]{Verdana} +\test +\setsansfont[Scale=MatchLowercase]{Verdana} +\test +\setsansfont[Scale=MatchUppercase]{Verdana} +\test +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/source/latex/fontspec/testsuite/X003a.ltx b/Master/texmf-dist/source/latex/fontspec/testsuite/X003a.ltx new file mode 100644 index 00000000000..b0d4b43aa6b --- /dev/null +++ b/Master/texmf-dist/source/latex/fontspec/testsuite/X003a.ltx @@ -0,0 +1,13 @@ +\documentclass{testsuite} +\usepackage{fontspec} +\usepackage{xcolor} +\begin{document} +{\fontspec[Color=5500FF]{Verdana}Test} + +{\fontspec[Color=red]{Verdana}Test} vs +{\color{red}\fontspec{Verdana}Test} + +\definecolor{Foo}{rgb}{0.3,0.4,0.5} +{\fontspec[Color=Foo]{Verdana}Test} vs +{\color{Foo}\fontspec{Verdana}Test} +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/source/latex/fontspec/testsuite/X004a.ltx b/Master/texmf-dist/source/latex/fontspec/testsuite/X004a.ltx new file mode 100644 index 00000000000..b6b32e4c0d1 --- /dev/null +++ b/Master/texmf-dist/source/latex/fontspec/testsuite/X004a.ltx @@ -0,0 +1,11 @@ +\documentclass{testsuite} +\usepackage{fontspec} +\usepackage{xcolor} +\begin{document} + \fontspec[ SizeFeatures={ + {Size={-8}, Font=TeX Gyre Bonum Italic, Color=AA0000}, + {Size={8-14}, Color=00AA00}, + {Size={14-}, Color=0000AA}} ]{TeX Gyre Chorus} + + {\scriptsize Small\par} Normal size\par {\Large Large\par} +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/source/latex/fontspec/testsuite/X005a.ltx b/Master/texmf-dist/source/latex/fontspec/testsuite/X005a.ltx new file mode 100644 index 00000000000..08dc161729c --- /dev/null +++ b/Master/texmf-dist/source/latex/fontspec/testsuite/X005a.ltx @@ -0,0 +1,9 @@ +\documentclass{testsuite} +\usepackage{fontspec} +\begin{document} +\Huge +\fontspec{Junicode} +Before +\addfontfeature{StylisticSet=6} +After +\end{document} diff --git a/Master/texmf-dist/source/latex/fontspec/testsuite/testsuite-listing.tex b/Master/texmf-dist/source/latex/fontspec/testsuite/testsuite-listing.tex new file mode 100644 index 00000000000..19b30a1cb7f --- /dev/null +++ b/Master/texmf-dist/source/latex/fontspec/testsuite/testsuite-listing.tex @@ -0,0 +1,10 @@ +\TEST{L001a} +\TEST{L002a} +\TEST{L003a} +\TEST{L003b} +\TEST{L005a} +\TEST{X001a} +\TEST{X002a} +\TEST{X003a} +\TEST{X004a} +\TEST{X005a} diff --git a/Master/texmf-dist/source/latex/fontspec/testsuite/testsuite.cls b/Master/texmf-dist/source/latex/fontspec/testsuite/testsuite.cls new file mode 100644 index 00000000000..4c696c9dc35 --- /dev/null +++ b/Master/texmf-dist/source/latex/fontspec/testsuite/testsuite.cls @@ -0,0 +1,17 @@ + +\ProvidesClass{testsuite} +\LoadClass{article} +\RequirePackage{geometry} +\geometry{ + papersize={9cm,6cm},margin=0.5cm +} +\pagestyle{empty} +\parindent=0pt +\parskip=10pt + +\newcommand\LATIN{ABCDEFGHIJKLMNOPQRSTUVWXYZ} +\newcommand\latin{abcdefghijklmnopqrstuvwxyz} + +\newcommand\GREEK{ΑΒΓΔΕΖΗΘϴΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ} +\newcommand\greek{αβγδεϵζηθϑικϰλμνξοπϖρϱςστυφϕχψω} + |