| 1 |
%% Copyright 2011 Pavel Farar |
| 2 |
% |
| 3 |
% This work may be distributed and/or modified under the |
| 4 |
% conditions of the LaTeX Project Public License, either version 1.3 |
| 5 |
% of this license or (at your option) any later version. |
| 6 |
% The latest version of this license is in |
| 7 |
% http://www.latex-project.org/lppl.txt |
| 8 |
% and version 1.3 or later is part of all distributions of LaTeX |
| 9 |
% version 2005/12/01 or later. |
| 10 |
% |
| 11 |
% This work has the LPPL maintenance status `maintained'. |
| 12 |
% |
| 13 |
% The Current Maintainer of this work is Pavel Farar |
| 14 |
|
| 15 |
|
| 16 |
\documentclass[oneside]{scrartcl} |
| 17 |
|
| 18 |
\usepackage[utf8]{inputenc} |
| 19 |
\usepackage[czech, english]{babel} |
| 20 |
\usepackage[IL2, T1]{fontenc} |
| 21 |
\usepackage{paratype} |
| 22 |
|
| 23 |
\usepackage{booktabs} |
| 24 |
|
| 25 |
\newcommand{\code}{\texttt} |
| 26 |
\newcommand{\program}{\texttt} |
| 27 |
|
| 28 |
\usepackage{color} |
| 29 |
\newcommand{\faked}{\textcolor{red}} |
| 30 |
|
| 31 |
|
| 32 |
\usepackage{textcomp} |
| 33 |
\usepackage[colorlinks]{hyperref} |
| 34 |
\hypersetup{pdfauthor={Pavel Farar}} |
| 35 |
|
| 36 |
|
| 37 |
\title{Support package for free fonts by ParaType} |
| 38 |
\author{Pavel Farář\\ |
| 39 |
\href{mailto:[email protected]}{[email protected]}} |
| 40 |
|
| 41 |
\begin{document} |
| 42 |
|
| 43 |
\selectlanguage{english}% |
| 44 |
|
| 45 |
\maketitle |
| 46 |
|
| 47 |
\tableofcontents |
| 48 |
|
| 49 |
|
| 50 |
\section{Introduction} |
| 51 |
|
| 52 |
This package contains the LaTeX support for the fonts PT Sans, |
| 53 |
PT Serif and PT Mono released by ParaType. |
| 54 |
PT Sans has four basic styles, two narrow styles and two caption styles. |
| 55 |
PT Serif has four basic styles and two caption styles. PT Mono has just |
| 56 |
the regular and bold styles. |
| 57 |
|
| 58 |
\begin{figure}[!htb] |
| 59 |
\centering{% |
| 60 |
\begin{tabular}{ll} |
| 61 |
{\usefont{T1}{PTSans-TLF}{m}{n}PT Sans Regular} & |
| 62 |
{\usefont{T1}{PTSans-TLF}{b}{n}PT Sans Bold} \\ |
| 63 |
{\usefont{T1}{PTSans-TLF}{m}{it}PT Sans Italic} & |
| 64 |
{\usefont{T1}{PTSans-TLF}{b}{it}PT Sans Bold Italic} \\ |
| 65 |
{\usefont{T1}{PTSansNarrow-TLF}{m}{n}PT Sans Narrow} & |
| 66 |
{\usefont{T1}{PTSansNarrow-TLF}{b}{n}PT Sans Narrow Bold} \\ |
| 67 |
{\usefont{T1}{PTSansCaption-TLF}{m}{n}PT Sans Caption} & |
| 68 |
{\usefont{T1}{PTSansCaption-TLF}{b}{n}PT Sans Caption Bold} |
| 69 |
\end{tabular} |
| 70 |
\caption{The styles of PT Sans}} |
| 71 |
\end{figure} |
| 72 |
|
| 73 |
|
| 74 |
\begin{figure}[!htb] |
| 75 |
\centering{% |
| 76 |
\begin{tabular}{ll} |
| 77 |
{\usefont{T1}{PTSerif-TLF}{m}{n}PT Serif Regular} & |
| 78 |
{\usefont{T1}{PTSerif-TLF}{b}{n}PT Serif Bold} \\ |
| 79 |
{\usefont{T1}{PTSerif-TLF}{m}{it}PT Serif Italic} & |
| 80 |
{\usefont{T1}{PTSerif-TLF}{b}{it}PT Serif Bold Italic} \\ |
| 81 |
{\usefont{T1}{PTSerifCaption-TLF}{m}{n}PT Serif Caption} & |
| 82 |
{\usefont{T1}{PTSerifCaption-TLF}{m}{it}PT Serif Caption Italic} |
| 83 |
\end{tabular} |
| 84 |
\caption{The styles of PT Serif}} |
| 85 |
\end{figure} |
| 86 |
|
| 87 |
\begin{figure}[!htb] |
| 88 |
\centering{% |
| 89 |
\begin{tabular}{ll} |
| 90 |
{\usefont{T1}{PTMono-TLF}{m}{n}PT Mono Regular} & |
| 91 |
{\usefont{T1}{PTMono-TLF}{b}{n}PT Mono Bold} |
| 92 |
\end{tabular} |
| 93 |
\caption{The styles of PT Mono}} |
| 94 |
\end{figure} |
| 95 |
|
| 96 |
The fonts cover standard Western, Central European and Cyrillic code |
| 97 |
pages and contain also characters of all title languages of the |
| 98 |
Russian Federation.This package supports encodings T1, OT1, OT2, IL2, |
| 99 |
TS1, T2A, T2B, T2C and X2. The fonts are included in the original |
| 100 |
TrueType format and in the Type 1 format (without PT Mono Bold). |
| 101 |
|
| 102 |
The fonts were developed by ParaType for the project \emph{Public Types |
| 103 |
of Russian Federation} and released under an open user license. |
| 104 |
They were designed by Alexandra Korolkova, Olga Umpeleva, Isabella Chaeva |
| 105 |
and Vladimir Yefimov. For more information see the |
| 106 |
web-site of \href{http://www.paratype.com}{ParaType}. |
| 107 |
|
| 108 |
|
| 109 |
\section{License} |
| 110 |
|
| 111 |
The fonts (both TrueType and Type 1) are licensed under Paratype Free |
| 112 |
Font License (the license is included). |
| 113 |
|
| 114 |
The fonts in TrueType format are original files designed by ParaType. The |
| 115 |
fonts in Type 1 format are also original files kindly provided by ParaType. |
| 116 |
|
| 117 |
All the support files are licensed under \LaTeX\ Project Public License, |
| 118 |
either version 1.3 of this license or (at your option) any later version. |
| 119 |
|
| 120 |
|
| 121 |
\section{Using the package} |
| 122 |
|
| 123 |
The package was created using \code{fontools}, but with some changes. From |
| 124 |
\code{fontools} also come the mixed case names and the suffix \code{-TLF} |
| 125 |
(tabular lining figures) of the font families and also the mixed case |
| 126 |
names of the packages for the individual font families. |
| 127 |
|
| 128 |
|
| 129 |
\subsection{Choosing the right map file} |
| 130 |
|
| 131 |
There are two map files: \code{paratype-truetype.map} and |
| 132 |
\code{paratype-type1.map}. |
| 133 |
You should use just one of these map files. |
| 134 |
|
| 135 |
The map file \code{paratype-type1.map} is good for \program{dvips}. It sets |
| 136 |
Type~1 fonts for PT Sans, PT Serif and PT Mono. |
| 137 |
This map file is a safe choice if you do not know which map file to use. |
| 138 |
|
| 139 |
The map file \code{paratype-truetype.map} is good for \program{pdf\TeX}. It sets |
| 140 |
TrueType fonts for PT Sans, PT Serif and PT Mono. You can use it if you prefer |
| 141 |
TrueType fonts. |
| 142 |
|
| 143 |
You install the required map file with a command like: |
| 144 |
\begin{verbatim} |
| 145 |
updmap-sys --enable Map=paratype-type1.map |
| 146 |
\end{verbatim} |
| 147 |
|
| 148 |
If you want to change the used map file, remember to uninstall the old map file |
| 149 |
before you install the new one: |
| 150 |
\begin{verbatim} |
| 151 |
updmap-sys --disable paratype-type1.map |
| 152 |
updmap-sys --enable Map=paratype-truetype.map |
| 153 |
\end{verbatim} |
| 154 |
|
| 155 |
|
| 156 |
\subsection{Setting the fonts in a document} |
| 157 |
|
| 158 |
There are several packages that you can use to set the fonts. You |
| 159 |
must explicitly use the package \code{fontenc} or \code{textcomp} (if |
| 160 |
needed). The easiest way to use the fonts is the package \code{paratype}: |
| 161 |
\begin{verbatim} |
| 162 |
\usepackage[T1]{fontenc} |
| 163 |
\usepackage{paratype} |
| 164 |
\end{verbatim} |
| 165 |
|
| 166 |
This sets the font \code{PTSerif-TLF} as the default serif family, |
| 167 |
the font \code{PTSans-TLF} as the default sans serif family and the |
| 168 |
font \code{PTMono-TLF} as the default monospaced family. |
| 169 |
|
| 170 |
There are also several packages that set the individual font families. |
| 171 |
They have the same name as the font family, but without the suffix: |
| 172 |
\code{PTSerif}, \code{PTSerifCaption}, |
| 173 |
\code{PTSans}, \code{PTSansNarrow}, \code{PTSansCaption} |
| 174 |
and \code{PTMono}. |
| 175 |
|
| 176 |
For example the package \code{PTSerif} sets the font \code{PTSerif-TLF} |
| 177 |
and you use it this way: |
| 178 |
\begin{verbatim} |
| 179 |
\usepackage[T1]{fontenc} |
| 180 |
\usepackage{PTSerif} |
| 181 |
\end{verbatim} |
| 182 |
|
| 183 |
|
| 184 |
If you want to use this font together with another font that has different |
| 185 |
x-height, you can use the option \code{scaled}: |
| 186 |
\begin{verbatim} |
| 187 |
\usepackage[scaled=0.9]{PTSerif} |
| 188 |
\end{verbatim} |
| 189 |
|
| 190 |
You can also typeset some text in a desired font like this: |
| 191 |
\begin{verbatim} |
| 192 |
{\usefont{T1}{PTSerifCaption-TLF}{m}{it}Text in PT Serif |
| 193 |
Caption Italic} |
| 194 |
\end{verbatim} |
| 195 |
|
| 196 |
|
| 197 |
\subsection{Faked styles} |
| 198 |
\label{faked-styles} |
| 199 |
|
| 200 |
PT Serif and PT Serif Caption have faked slanted and upright italic styles. PT Serif has them also in bold weight. |
| 201 |
PT Sans Caption, PT Sans Narrow and PT Mono have faked slanted and bold |
| 202 |
slanted styles. |
| 203 |
|
| 204 |
As all faked styles, they can not reach the quality of the true designed |
| 205 |
styles and there can be some problems. In PT Serif, there are problems with |
| 206 |
e.g. mathematical operators---look at the font samples, it is especially obvious |
| 207 |
for the upright italic style. |
| 208 |
|
| 209 |
However, these styles can be useful when used reasonably and not too often. |
| 210 |
You have the choice now. |
| 211 |
|
| 212 |
Different engines treat these styles differently, \program{dvips} embeds just |
| 213 |
the original fonts in the document, while \program{pdf\TeX} embeds faked fonts. |
| 214 |
Moreover, \program{pdf\TeX} behaves differently for Type 1 and TrueType fonts. |
| 215 |
In the former case it slants the Type 1 fonts and embeds them, in the latter |
| 216 |
case it does not slant the TrueType fonts and embeds bitmap Type 3 fonts instead. |
| 217 |
|
| 218 |
|
| 219 |
\subsection{The available series/shape combinations} |
| 220 |
|
| 221 |
You can see the available series/shape combinations in the |
| 222 |
table~\ref{tableShape}. The table shows the combinations that really |
| 223 |
exist in the fonts in black and faked styles in red. |
| 224 |
|
| 225 |
There is also automatic substitution. If you request the bold extended series, |
| 226 |
you will get the bold series instead. |
| 227 |
|
| 228 |
\begin{table}[!htb] |
| 229 |
\centering{% |
| 230 |
\begin{tabular}{ll} |
| 231 |
\toprule |
| 232 |
font family & series/shape combinations \\ |
| 233 |
\midrule |
| 234 |
PTSans-TLF & m/n, m/it, b/n, b/it, c/n, bc/n \\ |
| 235 |
PTSansNarrow-TLF & m/n, b/n, \faked{m/sl}, \faked{b/sl} \\ |
| 236 |
PTSansCaption-TLF & m/n, b/n, \faked{m/sl}, \faked{b/sl} \\ |
| 237 |
PTSerif-TLF & m/n, m/it, b/n, b/it, |
| 238 |
\faked{m/sl}, \faked{m/ui}, \faked{b/sl}, \faked{b/ui} \\ |
| 239 |
PTSerifCaption-TLF & m/n, m/it, \faked{m/sl}, \faked{m/ui} \\ |
| 240 |
PTMono-TLF & m/n, b/n, \faked{m/sl}, \faked{b/sl} \\ |
| 241 |
\bottomrule |
| 242 |
\end{tabular} |
| 243 |
\caption{The series/shape combinations for the fonts}\label{tableShape}} |
| 244 |
\end{table} |
| 245 |
|
| 246 |
The family PTSans-TLF has also both narrow styles. The caption styles |
| 247 |
for both PT Sans and PT Serif are available only as separate families. |
| 248 |
Especially the caption styles in PT Serif are more different from the |
| 249 |
four basic styles than it is usual for other fonts, therefore everyone |
| 250 |
should decide if and where he will use them. |
| 251 |
|
| 252 |
|
| 253 |
\subsection{Notes for the Czech and Slovak users} |
| 254 |
|
| 255 |
I changed the width of some letters in the encoding IL2: Lcaron |
| 256 |
in PT Serif Bold and PT Serif Bold Italic; tcaron in PT Serif Bold; |
| 257 |
dcaron in PT Sans Regular and PT Sans Bold and tcaron in PT Sans Bold. |
| 258 |
In all cased I made the width equal to that of the unaccented letter. |
| 259 |
Now all letters dcaron, tcaron, lcaron and Lcaron have the same width |
| 260 |
as the unaccented letter in the encoding IL2. The encoding T1 was left |
| 261 |
untouched. You can see the differences in the following samples (first |
| 262 |
line is in T1 and second in IL2). |
| 263 |
|
| 264 |
\selectlanguage{czech} |
| 265 |
V kódování IL2 jsem změnil šířku znaku Ľ ve fontech PT Serif Bold a |
| 266 |
PT Serif Bold Italic; dále šířku znaku ť ve fontu PT Serif Bold; pak |
| 267 |
šířku znaku ď ve fontech PT Sans Regular a PT Sans Bold a nakonec |
| 268 |
šířku znaku ť ve fontu PT Sans Bold. Ve všech případech jsem změnil |
| 269 |
šířku tak, že je stejná jako šířka stejného písmene bez diakritiky. |
| 270 |
Nyní mají v kódování IL2 všechny znaky ď, ť, ľ a Ľ stejnou šířku |
| 271 |
jako stejné znaky bez háčku. Kódování T1 bylo ponecháno beze změny. |
| 272 |
Rozdíly je možno vidět v následujících ukázkách (první řádka je pro |
| 273 |
kódování T1, druhá pro IL2). |
| 274 |
|
| 275 |
\begin{figure}[!htb] |
| 276 |
\centering{% |
| 277 |
{\Huge% |
| 278 |
\begin{tabular}{llllll}% |
| 279 |
{\usefont{T1}{PTSerif-TLF}{b}{n}Ľubomír} & |
| 280 |
{\usefont{T1}{PTSerif-TLF}{b}{it}Ľubomír} & |
| 281 |
{\usefont{T1}{PTSerif-TLF}{b}{n}šťovík} & |
| 282 |
{\usefont{T1}{PTSerif-TLF}{b}{n}laťka}\\ |
| 283 |
{\usefont{IL2}{PTSerif-TLF}{b}{n}Ľubomír} & |
| 284 |
{\usefont{IL2}{PTSerif-TLF}{b}{it}Ľubomír} & |
| 285 |
{\usefont{IL2}{PTSerif-TLF}{b}{n}šťovík} & |
| 286 |
{\usefont{IL2}{PTSerif-TLF}{b}{n}laťka} |
| 287 |
\end{tabular}} |
| 288 |
\caption{Changes in PT Serif}} |
| 289 |
\end{figure} |
| 290 |
|
| 291 |
|
| 292 |
\begin{figure}[!htb] |
| 293 |
\centering{% |
| 294 |
{\Huge% |
| 295 |
\begin{tabular}{llllll}% |
| 296 |
{\usefont{T1}{PTSans-TLF}{m}{n}ďas} & |
| 297 |
{\usefont{T1}{PTSans-TLF}{m}{n}loďka} & |
| 298 |
{\usefont{T1}{PTSans-TLF}{b}{n}ďas} & |
| 299 |
{\usefont{T1}{PTSans-TLF}{b}{n}loďka} & |
| 300 |
{\usefont{T1}{PTSans-TLF}{b}{n}šťovík} & |
| 301 |
{\usefont{T1}{PTSans-TLF}{b}{n}laťka}\\ |
| 302 |
{\usefont{IL2}{PTSans-TLF}{m}{n}ďas} & |
| 303 |
{\usefont{IL2}{PTSans-TLF}{m}{n}loďka} & |
| 304 |
{\usefont{IL2}{PTSans-TLF}{b}{n}ďas} & |
| 305 |
{\usefont{IL2}{PTSans-TLF}{b}{n}loďka} & |
| 306 |
{\usefont{IL2}{PTSans-TLF}{b}{n}šťovík} & |
| 307 |
{\usefont{IL2}{PTSans-TLF}{b}{n}laťka} |
| 308 |
\end{tabular}} |
| 309 |
\caption{Changes in PT Sans}} |
| 310 |
\end{figure} |
| 311 |
|
| 312 |
\selectlanguage{english} |
| 313 |
|
| 314 |
|
| 315 |
\section{Known bugs} |
| 316 |
|
| 317 |
I put the letters \emph{Cyrillic letter short I with tail} and \emph{Cyrillic |
| 318 |
letter EM with tail} to the slots where the same letters with descender |
| 319 |
should be. They are somewhat similar and some languages should use exactly |
| 320 |
these letters. I think that it is better than leaving the slots empty. |
| 321 |
|
| 322 |
Please \href{mailto:[email protected]}{send me} bug reports and |
| 323 |
suggestions about this package. |
| 324 |
|
| 325 |
\end{document} |