From b46b18bdacc073dbf0113fd295e3332b678fd63f Mon Sep 17 00:00:00 2001 From: Simon Aquino Date: Tue, 30 Dec 2025 22:33:27 +0000 Subject: [PATCH] Source Sans 3 mac compatibility When adding Source Sans 3 from here: https://github.com/adobe-fonts/source-sans/tree/release/OTF to the mac font library, the font names in \setsansfont need to match. --- awesome-cv.cls | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/awesome-cv.cls b/awesome-cv.cls index 02d2c2c..6e48768 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -81,17 +81,29 @@ \defaultfontfeatures{ Renderer=HarfBuzz, } -\setmainfont{SourceSans3}[ - FontFace={l}{n}{Font=*-Light}, - FontFace={l}{it}{Font=*-LightItalic}, +\setmainfont{Source Sans 3}[ + UprightFont=*, + ItalicFont=* Italic, + BoldFont=* Bold, + BoldItalicFont=* Bold Italic, + FontFace={l}{n}{Font=* Light}, + FontFace={l}{it}{Font=* Light Italic}, ] -\setsansfont{SourceSans3}[ - FontFace={l}{n}{Font=*-Light}, - FontFace={l}{it}{Font=*-LightItalic}, +\setsansfont{Source Sans 3}[ + UprightFont=*, + ItalicFont=* Italic, + BoldFont=* Bold, + BoldItalicFont=* Bold Italic, + FontFace={l}{n}{Font=* Light}, + FontFace={l}{it}{Font=* Light Italic}, ] \newfontfamily\roboto{Roboto}[ - FontFace={l}{n}{Font=*-Light}, - FontFace={l}{it}{Font=*-LightItalic}, + UprightFont=*, + ItalicFont=* Italic, + BoldFont=* Bold, + BoldItalicFont=* Bold Italic, + FontFace={l}{n}{Font=* Light}, + FontFace={l}{it}{Font=* Light Italic}, ] % Needed for the photo ID \RequirePackage[skins]{tcolorbox}