From 4327fc8c0086ed270002e6d5df3f83ffae8041a9 Mon Sep 17 00:00:00 2001 From: Chris Fenner Date: Sun, 3 Dec 2023 17:03:36 -0800 Subject: [PATCH] use regular arial except when we need unicode glyphs --- Dockerfile | 9 ++++++++- template/eisvogel.latex | 9 +++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8f48bad..adfe519 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,7 +38,8 @@ RUN tlmgr update --self && \ mathtools \ fontspec \ unicode-math \ - titlesec + titlesec \ + newunicodechar RUN apk upgrade && apk add --no-cache \ bash \ @@ -52,6 +53,12 @@ RUN apk upgrade && apk add --no-cache \ py3-pip \ yarn +# Install MS core fonts, including Arial +RUN apk --no-cache add msttcorefonts-installer fontconfig && \ + update-ms-fonts && \ + fc-cache -f + +# Install the Arial Unicode MS font as well RUN wget https://github.com/kaienfr/Font/raw/master/font/ARIALUNI.TTF -P /usr/share/fonts/TTF/ && \ fc-cache -f diff --git a/template/eisvogel.latex b/template/eisvogel.latex index c41bc00..bb5da8e 100644 --- a/template/eisvogel.latex +++ b/template/eisvogel.latex @@ -583,10 +583,15 @@ $endif$ } \usepackage{fontspec} -\setmainfont{Arial Unicode MS} -\setsansfont{Arial Unicode MS} +\setmainfont{Arial} +\setsansfont{Arial} \setmonofont{Source Code Pro} +% Use Arial Unicode to display various unicode symbols that might be present +\newfontfamily{\fallbackfont}{Arial Unicode MS}[Scale=MatchLowercase] +\DeclareTextFontCommand{\textfallback}{\fallbackfont} +\newunicodechar{≔}{\textfallback{≔}} + % % heading color %