From: Benjamin Mako Hill Date: Mon, 19 Feb 2018 03:45:07 +0000 (-0800) Subject: define sffamily separately from main font X-Git-Url: https://code.communitydata.science/uw_tex_letterhead.git/commitdiff_plain/2fc2a05e5430b2d0480a00c8708bb60710b37980?ds=sidebyside define sffamily separately from main font --- 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 }