From 2fc2a05e5430b2d0480a00c8708bb60710b37980 Mon Sep 17 00:00:00 2001 From: Benjamin Mako Hill Date: Sun, 18 Feb 2018 19:45:07 -0800 Subject: [PATCH] define sffamily separately from main font --- washington_letterhead_letter-matrix-deptartment.tex | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/washington_letterhead_letter-matrix-deptartment.tex b/washington_letterhead_letter-matrix-deptartment.tex index 464f1fa..e79f742 100644 --- a/washington_letterhead_letter-matrix-deptartment.tex +++ b/washington_letterhead_letter-matrix-deptartment.tex @@ -9,10 +9,11 @@ \usepackage[top=1.25in,left=1.25in,bottom=1.20in,right=1.25in]{geometry} -\usepackage{fontspec} \usepackage{xltxtra} -\setmainfont{OpenSans}[ +\usepackage{fontspec} + +\setsansfont{OpenSans}[ Path = ./fonts/OpenSans/, Extension = .ttf, UprightFont = *-Regular, @@ -21,6 +22,8 @@ ItalicFont = *-Italic, BoldItalicFont = *-BoldItalic ] +\setmainfont{OpenSans} + \usepackage{polyglossia} \setdefaultlanguage{english} @@ -54,9 +57,9 @@ BoldItalicFont = *-BoldItalic \ifnum\thepage=1 \begin{tikzpicture}[remember picture,overlay,every node/.style={inner sep=0,outer sep=0}] \node at (current page.south west) [yshift=0.614in,xshift=1.21in,anchor=north west] - {\fontsize{9pt}{11pt} \selectfont \uwaddress}; + {\sffamily \fontsize{9pt}{11pt} \selectfont \uwaddress}; \node at (current page.south west) [yshift=0.40in,xshift=1.21in,anchor=north west] - {\fontsize{9pt}{11pt} \selectfont \phone~~\email~~\web}; + {\sffamily \fontsize{9pt}{11pt} \selectfont \phone~~\email~~\web}; \end{tikzpicture} \fi } -- 2.39.5