define sffamily separately from main font
authorBenjamin Mako Hill <mako@atdot.cc>
Mon, 19 Feb 2018 03:45:07 +0000 (19:45 -0800)
committerBenjamin Mako Hill <mako@atdot.cc>
Mon, 19 Feb 2018 03:45:07 +0000 (19:45 -0800)
washington_letterhead_letter-matrix-deptartment.tex

index 464f1fabcdb9eb7c3d9864db2e71c9ae6dd86b5e..e79f7422304b079925db9f29bd971d75349c6980 100644 (file)
@@ -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
 }

Community Data Science Collective || Want to submit a patch?