🐛 Support the google fonts version of Tahoma

main
Adrien Burgun 2 years ago
parent f2e0946f01
commit 7571ecdaba

@ -7,10 +7,21 @@ Report for my fourth-year internship, in latex.
```sh ```sh
# Download required programs and libraries # Download required programs and libraries
sudo pacman -S texlive-core texlive-latexextra texlive-fontsextra texlive-langextra sudo pacman -S texlive-core texlive-latexextra texlive-fontsextra texlive-langextra
git clone https://github.com/pinam45/utbm-latex-internship-report-covers
git clone https://aur.archlinux.org/ttf-tahoma.git git clone https://aur.archlinux.org/ttf-tahoma.git
git clone https://aur.archlinux.org/ttf-adobe-source-sans-fonts.git
git clone https://github.com/pinam45/utbm-latex-internship-report-covers
git clone https://git.shadamethyst.xyz/amethyst/ST40-report git clone https://git.shadamethyst.xyz/amethyst/ST40-report
# Download and install the Tahoma font
cd ttf-tahoma
makepkg -si
cd ..
# Download and install the Source Sans Pro font
cd ttf-adobe-source-sans-fonts
makepkg -si
cd ..
# Copy the utbmcovers library to the texmf folder # Copy the utbmcovers library to the texmf folder
cd utbm-latex-internship-report-covers cd utbm-latex-internship-report-covers
mkdir -p ~/texmf/tex/latex/ mkdir -p ~/texmf/tex/latex/
@ -18,11 +29,6 @@ cp -r utbmcovers ~/texmf/tex/latex/
sudo mktexlsr sudo mktexlsr
cd .. cd ..
# Download and install the Tahoma font
cd ttf-tahoma
makepkg -si
cd ..
# Build the report # Build the report
cd ST40-report cd ST40-report
make make

@ -78,7 +78,13 @@
\newfontfamily{\Tahoma}{Tahoma} \newfontfamily{\Tahoma}{Tahoma}
\newfontfamily{\SourceSans}{Source Sans Pro} \newfontfamily{\SourceSans}{Source Sans Pro}
% Looks like the font from google fonts has a different case,
% so I'm stuck with scanning for existing fonts
\IfFontExistsTF{Source Sans Semibold}{
\newfontfamily{\SourceSansSB}[UprightFont={* Semibold}]{Source Sans Pro} \newfontfamily{\SourceSansSB}[UprightFont={* Semibold}]{Source Sans Pro}
}{
\newfontfamily{\SourceSansSB}[UprightFont={* SemiBold}]{Source Sans Pro}
}
\setmainfont{Source Sans Pro} \setmainfont{Source Sans Pro}
% \newfontfamily{\ossb}[UprightFont={* Semibold}]{Open Sans} % \newfontfamily{\ossb}[UprightFont={* Semibold}]{Open Sans}
\newcommand{\entity}[1]{{\SourceSansSB #1}} \newcommand{\entity}[1]{{\SourceSansSB #1}}

Loading…
Cancel
Save