summaryrefslogtreecommitdiff
path: root/fonts/roboto/README
blob: df6b08567fd49f46d4232ba483eb3dc0cc6ac9ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
This is the README for the roboto package, version
2019-10-14.

This package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX
support for the Roboto, RobotoCondensed, RobotoMono and
RobotoSlab families of fonts, designed by Christian
Robertson for Google, who says:

  Roboto has a dual nature. It has a mechanical skeleton
  and the forms are largely geometric. At the same time,
  the font features friendly and open curves. While some
  grotesks distort their letterforms to force a rigid
  rhythm, Roboto doesn't compromise, allowing letters to be
  settled into their natural width. This makes for a more
  natural reading rhythm more commonly found in humanist and
  serif types.

In addition to some condensed variants, there are four
weights in a slab-serif family. Roboto and RobotoCondensed
have small-capitals.

To install this package on a TDS-compliant
TeX system download the file
"tex-archive"/install/fonts/roboto.tds.zip, where the
preferred URL for "tex-archive" is http://mirror.ctan.org.
Unzip the archive at the root of an appropriate texmf tree,
likely a personal or local tree. If necessary, update the
file-name database (e.g., texhash). Update the font-map
files by enabling the Map file roboto.map.

To use, add

\usepackage{roboto}

to the preamble of your document. This makes Roboto the
default sans family. To also set Roboto as the main text
font, use

\usepackage[sfdefault]{roboto}

To use RobotoMono, add

\usepackage{roboto-mono}

LuaLaTeX and xeLaTeX users who might prefer type1 fonts or
who wish to avoid fontspec may use the type1 option.

Other options include:

regular
bold
medium        
black
light
thin

These are implemented by defining macros recognized
by commands defined in the mweights package (without
re-defining \bfdefault or \mddefault).

condensed       

Only light, regular and bold weights are available in the
condensed family.

Defaults are regular and bold (uncondensed). 

Italics (slanted) are available in all variants.

rm

This option activates the slab-serif variants as the main
text font. The weights available are thin, light, regular
and bold, but there are no italics.

Options scaled=<number> or scale=<number> may be used to
adjust the sans fontsizes to match a serifed font.

The default figure style is proportional-lining but the
following options may be used to get other styles (in
Roboto and RobotoCondensed):

oldstyle (or osf)
tabular (or t)

The following allow for localized use of non-default figure
styles:

\robotoLF{...}   (proportional lining)
\robotoTLF{...}  (tabular lining)
\robotoOsF{...}  (proportional oldstyle)
\robotoTOsF{...} (tabular oldstyle)

The following commands allow for localized use of
non-default weights:

\robotoThin{...}        \robotomonoThin{...} 
\robotoLight{...}       \robotomonoLight{...}
\robotoRegular{...}     \robotomonoRegular{...}
\robotoMedium{...}      \robotomonoMedium{...}
\robotoBold{...}        \robotomonoBold{...}
\robotoBlack{...}       \robotomonoBlack{...}

Font encodings supported are OT1, T1, TS1, LY1 and LGR.

Commands \roboto, \robotocondensed, \robotoboldcondensed,
\robotoslab, \robotolgr, \robotoslablgr and \robotomono select 
those font families or series.

The original fonts are available at
http://www.google.com/webfonts and are licensed under the
Apache License, (version 2); the text may be found in the
doc directory. The opentype and type1 versions were created
using fontforge and cfftot1. The support files were created
using autoinst and are licensed under the terms of the LaTeX
Project Public License. The maintainer of this package is
Bob Tennent (rdt at cs.queensu.ca)