22

I'm using the LaTeX package roboto in the way that is proposed here:

\usepackage[sfdefault]{roboto}
\usepackage[T1]{fontenc}

The output (pdflatex) looks like this:

latex roboto

However, the 'real' Roboto font looks like this (see here, for example):

real font

The general quality might be a sampling problem but you can notice small differences like the square vs. round 'i'-dot or the way that the 'r' or the 'e' looks like in the comparison:

comparison

Is there a way to get the 'proper' Roboto font or am I doing something wrong?

6
  • 1
    publicobject.com/2014/06/26/roboto-old-and-new The package uses the old version of the font.
    – Thérèse
    Apr 16, 2015 at 17:32
  • 1
    You can use the new version of the font if you have it installed on your system and then load it with fontspec and compile using XeLaTeX or LuaLaTeX instead of pdfLaTeX. Apr 16, 2015 at 17:35
  • 1
    I guess that an email to Bob Tennent (the maintainer of the Roboto font distribution for pdflatex) is in order.
    – egreg
    Apr 16, 2015 at 17:37
  • @Thérèse Thank you very much for the link: this is exactly what I was looking for.
    – shark.dp
    Apr 16, 2015 at 17:48
  • @egreg I will write an email to Bob Tennent and ask him about it. Thank you.
    – shark.dp
    Apr 16, 2015 at 17:49

1 Answer 1

18

Robot comes in two versions, both of which may be seen and downloaded at publicobject.com/2014/06/26/roboto-old-and-new/. For a far more elaborate comparison, see the review by Stephen Coles, “Roboto Is Was a Four-headed Frankenfont,” at typographica.org.

For now, the package roboto supplies the older version of the font. Users of luatex or xetex may dispense with the package, install the new font on their systems (downloading it from the link above or, of course, from www.google.com/fonts/specimen/Roboto), and invoke it with \usepackage{fontspec} and \setsansfont{Roboto}.

2
  • 9
    As suggested, I wrote an Email to Bob Tennent and he immediately updated the package on CTAN: ctan.org/pkg/roboto. It now includes the newest version of Roboto!
    – shark.dp
    Apr 17, 2015 at 13:23
  • @shark.dp I confirm that the font has the new shapes in TL2015/pretest, so TeX Live 2015 will sport it by default.
    – egreg
    Apr 20, 2015 at 12:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .