| 1 |
\documentclass{article} |
| 2 |
|
| 3 |
\usepackage{ifluatex} |
| 4 |
\ifluatex\else |
| 5 |
\errmessage{This file requires luaLaTeX to compile.^^J^^J} |
| 6 |
\fi |
| 7 |
|
| 8 |
\usepackage[a4paper]{geometry} |
| 9 |
\usepackage{fontspec} |
| 10 |
\usepackage{hyperref} |
| 11 |
\usepackage{multicol} |
| 12 |
\usepackage{fancyvrb} |
| 13 |
\usepackage{microtype} |
| 14 |
\usepackage{hologo} |
| 15 |
\usepackage{boxedminipage,xspace} |
| 16 |
\newfontfamily{\inria}{Inria Serif} |
| 17 |
\newfontfamily{\inriasf}{Inria Sans} |
| 18 |
|
| 19 |
|
| 20 |
\title{\inria Inria fonts (serif \& sans-serif)} |
| 21 |
\author{Nicolas Markey} |
| 22 |
\date{\today} |
| 23 |
|
| 24 |
\def\cmd#1{\texttt{\textbackslash#1}} |
| 25 |
\def\pack#1{\texttt{#1}\xspace} |
| 26 |
|
| 27 |
\def\lipsum{Lorem ipsum dolor sit amet, consectetuer |
| 28 |
adipiscing elit. Ut~purus elit, vestibulum~ut, placerat~ac, |
| 29 |
adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam~arcu |
| 30 |
libero, nonummy eget, consectetuer~id, vulputate~a, magna. Donec |
| 31 |
vehicula augue eu neque.} |
| 32 |
|
| 33 |
|
| 34 |
\begin{document} |
| 35 |
\maketitle |
| 36 |
|
| 37 |
\begin{abstract} |
| 38 |
{\inria Inria} is a free font designed by |
| 39 |
\href{https://black-foundry.com/blog/inria-serif-and-inria/}{Black[Foundry]} |
| 40 |
for \href{http://www.inria.fr/}{Inria} research institute. The~font is |
| 41 |
available for free. It~comes Serif and Sans Serif, each with 3 |
| 42 |
weights and matching italics. |
| 43 |
|
| 44 |
Using these fonts with \hologo{XeLaTeX} and \hologo{LuaLaTeX} is easy, |
| 45 |
by using the \pack{fontspec} package; we~refer to the documentation of |
| 46 |
\pack{fontspec} for more information. |
| 47 |
% |
| 48 |
The present package provides a way of using them with \hologo{LaTeX} |
| 49 |
and \hologo{pdfLaTeX}: it~provides two style files, |
| 50 |
\texttt{InriaSerif.sty} and \texttt{InriaSans.sty}, together with the |
| 51 |
postscript version of the fonts and their associated files. These~were |
| 52 |
created using \texttt{autoinst}. |
| 53 |
\end{abstract} |
| 54 |
|
| 55 |
|
| 56 |
\section{Installation} |
| 57 |
To install on a TDS-compliant \TeX\ system, first download the |
| 58 |
\texttt{inriafonts.tds.zip} file from CTAN, and unzip it at the root |
| 59 |
of the texmf tree where you want to install the font. Then add maps |
| 60 |
\pack{InriaSerif.map} and \pack{InriaSans.map} to \texttt{updmap}, and |
| 61 |
update the font maps and list of files. |
| 62 |
|
| 63 |
|
| 64 |
\section{Usage with \LaTeX\slash \hologo{pdfLaTeX}} |
| 65 |
|
| 66 |
Simply use package \texttt{InriaSerif} (which sets the serif font as |
| 67 |
the \cmd{rmdefault} font and the sans-serif font as the |
| 68 |
\cmd{sfdefault} font) or \texttt{InriaSans} (which sets the sans-serif |
| 69 |
font as \cmd{rmdefault}). |
| 70 |
|
| 71 |
These packages admit the following (main) options (automatically |
| 72 |
provided by \texttt{autoinst}): |
| 73 |
\begin{itemize} |
| 74 |
\item \texttt{lining} (default) and \texttt{oldstyle}: use lining |
| 75 |
glyphs (\bgroup\inria 1234567890\egroup) vs. old-style glyphs |
| 76 |
(\bgroup\inria\addfontfeature{Numbers=OldStyle}1234567890\egroup) |
| 77 |
for figures. This applies only to figures in text mode by default, |
| 78 |
since these packages do not affect the fonts of the math mode; use |
| 79 |
package \texttt{mathastext} to have the same fonts in math mode as |
| 80 |
in text mode. |
| 81 |
\item \texttt{tabular} and \texttt{proportional} (default): (lining) |
| 82 |
figures may have fixed size |
| 83 |
(\bgroup\inria\addfontfeature{Numbers=Monospaced} 1234567890\egroup) or |
| 84 |
proportional size (\bgroup\inria 1234567890\egroup). |
| 85 |
\item \texttt{regular} (default) and \texttt{light} font series; |
| 86 |
\item \texttt{scale=$\mathtt{1.1}$} scales the font by the given factor. |
| 87 |
\end{itemize} |
| 88 |
Both packages provide superscript figures (in text mode) using |
| 89 |
\cmd{textsu} and \cmd{sufigures}: for instance, |
| 90 |
\cmd{textsu\string{abc1234567890\string}} produces |
| 91 |
{\inria\addfontfeature{VerticalPosition=Superior}abc1234567890} |
| 92 |
(notice how this only applies to figures, and not to letters). |
| 93 |
|
| 94 |
|
| 95 |
\section{Samples and list of glyphs} |
| 96 |
|
| 97 |
\enlargethispage{5mm} |
| 98 |
On the next page, we present short samples for the serif- and |
| 99 |
sans-serif versions of the font, for all three weights, and for their |
| 100 |
italics shapes. Tables with full lists of glyphs (for regular serif |
| 101 |
and sans-serif fonts) are displayed on the last two pages. |
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
\newgeometry{textwidth=160mm,textheight=240mm} |
| 106 |
|
| 107 |
\subsection{Inria Serif Light} |
| 108 |
|
| 109 |
\bgroup\inria |
| 110 |
\addfontfeature{UprightFont={* Light}} |
| 111 |
\addfontfeature{ItalicFont={* Light Italic}} |
| 112 |
|
| 113 |
\begin{multicols}{2} |
| 114 |
\lipsum |
| 115 |
\par\itshape\lipsum |
| 116 |
\end{multicols} |
| 117 |
\egroup |
| 118 |
|
| 119 |
\subsection{Inria Serif Regular} |
| 120 |
|
| 121 |
\bgroup\inria |
| 122 |
\addfontfeature{UprightFont={* Regular}} |
| 123 |
\addfontfeature{ItalicFont={* Italic}} |
| 124 |
\begin{multicols}{2} |
| 125 |
\lipsum |
| 126 |
\par\itshape\lipsum |
| 127 |
\end{multicols} |
| 128 |
\egroup |
| 129 |
|
| 130 |
\subsection{Inria Serif Bold} |
| 131 |
\bgroup\inria |
| 132 |
\addfontfeature{UprightFont={* Bold}} |
| 133 |
\addfontfeature{ItalicFont={* Bold Italic}} |
| 134 |
\begin{multicols}{2} |
| 135 |
\lipsum |
| 136 |
\par\itshape\lipsum |
| 137 |
\end{multicols} |
| 138 |
\egroup |
| 139 |
|
| 140 |
|
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
\subsection{Inria Sans Light} |
| 145 |
|
| 146 |
\bgroup\inriasf |
| 147 |
\addfontfeature{UprightFont={* Light}} |
| 148 |
\addfontfeature{ItalicFont={* Light Italic}} |
| 149 |
|
| 150 |
\begin{multicols}{2} |
| 151 |
\lipsum\medskip |
| 152 |
\par\itshape\lipsum |
| 153 |
\end{multicols} |
| 154 |
\egroup |
| 155 |
|
| 156 |
\subsection{Inria Sans Regular} |
| 157 |
|
| 158 |
\bgroup\inriasf |
| 159 |
\addfontfeature{UprightFont={* Regular}} |
| 160 |
\addfontfeature{ItalicFont={* Italic}} |
| 161 |
\begin{multicols}{2} |
| 162 |
\lipsum\medskip |
| 163 |
\par\itshape\lipsum |
| 164 |
\end{multicols} |
| 165 |
\egroup |
| 166 |
|
| 167 |
\subsection{Inria Sans Bold} |
| 168 |
\bgroup\inriasf |
| 169 |
\addfontfeature{UprightFont={* Bold}} |
| 170 |
\addfontfeature{ItalicFont={* Bold Italic}} |
| 171 |
\begin{multicols}{2} |
| 172 |
\lipsum |
| 173 |
\par\itshape\lipsum |
| 174 |
\end{multicols} |
| 175 |
\egroup |
| 176 |
|
| 177 |
|
| 178 |
|
| 179 |
|
| 180 |
|
| 181 |
\newgeometry{textwidth=175mm,textheight=269mm} |
| 182 |
|
| 183 |
\subsection{List of glyphs -- Inria Serif Regular} |
| 184 |
\newcount\charcount |
| 185 |
\newcount\nbcharcount |
| 186 |
\parindent=0pt |
| 187 |
|
| 188 |
\bgroup\inria |
| 189 |
\offinterlineskip |
| 190 |
\def\dochar{\iffontchar\font\charcount\advance\nbcharcount1 |
| 191 |
\makebox[15mm][l]{\strut\vrule\,{\tiny\number\charcount}\hfill\char\charcount}\hskip1mm plus 1mm |
| 192 |
\fi} |
| 193 |
\loop\dochar |
| 194 |
\ifnum\charcount<"10FFFF\relax |
| 195 |
\advance\charcount1 |
| 196 |
\repeat |
| 197 |
\global\advance\nbcharcount0 |
| 198 |
\egroup |
| 199 |
|
| 200 |
\vskip5mm |
| 201 |
(\the\nbcharcount\ chars displayed) |
| 202 |
|
| 203 |
|
| 204 |
|
| 205 |
\subsection{List of glyphs -- Inria Sans Regular} |
| 206 |
\newcount\charcount |
| 207 |
\newcount\nbcharcount |
| 208 |
\parindent=0pt |
| 209 |
|
| 210 |
\bgroup\inriasf |
| 211 |
\offinterlineskip |
| 212 |
\def\dochar{\iffontchar\font\charcount\advance\nbcharcount1 |
| 213 |
\makebox[15mm][l]{\strut\vrule\,{\tiny\number\charcount}\hfill\char\charcount}\hskip1mm plus 1mm |
| 214 |
\fi} |
| 215 |
\loop\dochar |
| 216 |
\ifnum\charcount<"10FFFF\relax |
| 217 |
\advance\charcount1 |
| 218 |
\repeat |
| 219 |
\global\advance\nbcharcount0 |
| 220 |
\egroup |
| 221 |
|
| 222 |
\vskip5mm |
| 223 |
(\the\nbcharcount\ chars displayed) |
| 224 |
|
| 225 |
|
| 226 |
|
| 227 |
\end{document} |