Skip to content

Commit

Permalink
use regular arial except when we need unicode glyphs
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisfenner committed Dec 4, 2023
1 parent 21507c2 commit 4327fc8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ RUN tlmgr update --self && \
mathtools \
fontspec \
unicode-math \
titlesec
titlesec \
newunicodechar

RUN apk upgrade && apk add --no-cache \
bash \
Expand All @@ -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

Expand Down
9 changes: 7 additions & 2 deletions template/eisvogel.latex
Original file line number Diff line number Diff line change
Expand Up @@ -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
%
Expand Down

0 comments on commit 4327fc8

Please sign in to comment.