X-Git-Url: http://git.projectaon.org/?p=project-aon.git;a=blobdiff_plain;f=common%2Fpdf%2Fbuild%2Flw%2Fsetup_test%2Ffont-test.tex;fp=common%2Fpdf%2Fbuild%2Flw%2Fsetup_test%2Ffont-test.tex;h=1e42c32120f29120ee6ac0cfad747e213f4ade75;hp=0000000000000000000000000000000000000000;hb=f4bdee5083ca9a72713637e1e979aa183e06faea;hpb=97545603aea8298f1eceb604ff65085cc7adfced diff --git a/common/pdf/build/lw/setup_test/font-test.tex b/common/pdf/build/lw/setup_test/font-test.tex new file mode 100644 index 0000000..1e42c32 --- /dev/null +++ b/common/pdf/build/lw/setup_test/font-test.tex @@ -0,0 +1,38 @@ +\documentclass{article} +\usepackage{ifthen} +\usepackage{xltxtra} +\setmainfont[Ligatures=TeX]{ITC Souvenir Std Light} +\makeatletter +\newcommand{\showfont}{encoding: \f@encoding{}, + family: \f@family{}, + series: \f@series{}, + shape: \f@shape{}, + size: \f@size{} +} +\newcommand{\iffont}[3]{\ifthenelse{\equal{\f@family}{#1}}{#2}{#3}} +\makeatother +\begin{document} +We are using this font: \showfont + +This is normal text. + +\em{This is emphasised text} + +\bf{This is bold text} + +We switch to Helvetica now: + +\renewcommand{\familydefault}{\sfdefault} \normalfont + +We are using this font: \showfont + +This is normal text. + +\em{This is emphasised text} + +\bf{This is bold text} + + + +\end{document} +