aboutsummaryrefslogtreecommitdiffstats
path: root/virtio.tex
diff options
context:
space:
mode:
authorYoni Bettan <ybettan@redhat.com>2019-08-20 15:01:43 +0300
committerMichael S. Tsirkin <mst@redhat.com>2019-09-25 06:42:17 -0400
commit1e155e48b34de307c0a932ff71186df166af5ece (patch)
tree425a23eff947fdb4054e652eb559874fbe302019 /virtio.tex
parentef5a7f405b95f85ced0d49c10f89521fe23fd6d9 (diff)
downloadvirtio-text-1e155e48b34de307c0a932ff71186df166af5ece.tar.gz
Changed fonts to freely-available fonts when built locally.
'Arial' and 'Courier New' fonts are not installed in TeX Live by default therefore when building the spec document using 'makeall.sh' on a Linux machine, that usually have Tex Live installed, we get fonts error for those fonts. This patch is checking if those fonts exist on the machine inside the tex document and if not change them to freely-available fonts: Arial -> Liberation Sans Courier New -> Liberation Mono Signed-off-by: Yoni Bettan <ybettan@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'virtio.tex')
-rw-r--r--virtio.tex4
1 files changed, 2 insertions, 2 deletions
diff --git a/virtio.tex b/virtio.tex
index ef2d3fe..a99bb3f 100644
--- a/virtio.tex
+++ b/virtio.tex
@@ -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}