diff options
-rw-r--r-- | commands-pdf.tex | 12 | ||||
-rw-r--r-- | virtio.tex | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/commands-pdf.tex b/commands-pdf.tex index ae7a186..23289d8 100644 --- a/commands-pdf.tex +++ b/commands-pdf.tex @@ -20,7 +20,7 @@ \newcommand{\oasistitle}[1] { \begin{spacing}{1.5} -\fontspec[Color=446CAA]{Arial} +\IfFontExistsTF{Arial}{\fontspec[Color=446CAA]{Arial}}{\fontspec[Color=446CAA]{Liberation Sans}} \fontsize{24}{24} \textbf{\noindent#1} \end{spacing} @@ -29,7 +29,7 @@ \newcommand{\oasisstagelabel}[1] { \begin{spacing}{1.1} -\fontspec[Color=446CAA]{Arial} +\IfFontExistsTF{Arial}{\fontspec[Color=446CAA]{Arial}}{\fontspec[Color=446CAA]{Liberation Sans}} \fontsize{18}{18} \textbf{\noindent#1} \end{spacing} @@ -38,7 +38,7 @@ \newcommand{\oasisdate}[1] { \begin{spacing}{1.1} -\fontspec[Color=446CAA]{Arial} +\IfFontExistsTF{Arial}{\fontspec[Color=446CAA]{Arial}}{\fontspec[Color=446CAA]{Liberation Sans}} \fontsize{18}{18} \textbf{\noindent#1} \end{spacing} @@ -47,7 +47,7 @@ \newcommand{\oasisnoticelabel}[1] { \begin{spacing}{1.5} -\fontspec[Color=446CAA]{Arial} +\IfFontExistsTF{Arial}{\fontspec[Color=446CAA]{Arial}}{\fontspec[Color=446CAA]{Liberation Sans}} \fontsize{18}{18} \textbf{\noindent#1} \end{spacing} @@ -56,7 +56,7 @@ \newcommand{\oasisspecificationuris}[1] { { -\fontspec[Color=446CAA]{Arial} +\IfFontExistsTF{Arial}{\fontspec[Color=446CAA]{Arial}}{\fontspec[Color=446CAA]{Liberation Sans}} \fontsize{12}{12} \textbf{\noindent#1} } @@ -65,7 +65,7 @@ \newenvironment{oasistitlesection}[1] { \setlength{\tabcolsep}{0in}\begin{tabular}{p{0in}p{5.8in}} -\multicolumn{2}{l}{\fontspec[Color=446CAA]{Arial}\fontsize{10}{10}\textbf{#1:}}\\[-0.05in] +\multicolumn{2}{l}{\IfFontExistsTF{Arial}{\fontspec[Color=446CAA]{Arial}}{\fontspec[Color=446CAA]{Liberation Sans}}\fontsize{10}{10}\textbf{#1:}}\\[-0.05in] &\setlength{\topsep}{0in}\setlength{\parsep}{0in}\setlength{\partopsep}{0in} } { \end{tabular} @@ -52,9 +52,9 @@ %\def_{\_} % Don't hyphenate acronyms %\uchyph=0 -\setmainfont[Mapping=tex-text]{Arial} +\IfFontExistsTF{Arial}{\setmainfont[Mapping=tex-text]{Arial}}{\setmainfont[Mapping=tex-text]{Liberation Sans}} %\setromanfont{Arial} -\setmonofont{Courier New} +\IfFontExistsTF{Courier New}{\setmonofont{Courier New}}{\setmonofont{Liberation Mono}} \urlstyle{rm} |