Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Oddity using Raleway font in XeLaTeX

298 views
Skip to first unread message

Peter Flynn

unread,
Jul 13, 2016, 5:45:55 PM7/13/16
to
If I use the following MWE:

\documentclass{article}
\usepackage{fontspec}
\usepackage{raleway}
\begin{document}\sffamily
\LaTeX\ is a \emph{document preparation system}.
\end{document}

I get an error: missing italics.

> LaTeX Font Warning: Font shape `EU1/Raleway(0)/m/it' undefined
> (Font) using `EU1/Raleway(0)/m/n' instead on input line 5.

But the OTF font files are there, and it's finding the Medium or Regular
because the PDF shows it.

> /usr/share/texlive/texmf-dist/fonts/opentype/impallari/raleway/Raleway-Medium-Italic.otf
> /usr/share/texlive/texmf-dist/fonts/opentype/impallari/raleway/Raleway-Regular-Italic.otf

and raleway.sty appears to reference them correctly:

\newfontfamily\raleway
[ UprightFont = *-Regular ,
ItalicFont = *-Regular-Italic ,
BoldFont = *-Bold ,
BoldItalicFont = *-Bold-Italic ]
{Raleway}

\newfontfamily\ralewaymedium
[ UprightFont = *-Medium ,
ItalicFont = *-Medium-Italic ,
BoldFont = *-Bold ,
BoldItalicFont = *-Bold-Italic ]
{Raleway}

and there isn't another directory of Raleway fonts on the system.

What am I doing wrong?

///Peter

Bob Tennent

unread,
Jul 14, 2016, 3:26:56 AM7/14/16
to
On Wed, 13 Jul 2016 22:45:49 +0100, Peter Flynn wrote:
>
> \documentclass{article}
> \usepackage{fontspec}
> \usepackage{raleway}
> \begin{document}\sffamily
> \LaTeX\ is a \emph{document preparation system}.
> \end{document}
>
> I get an error: missing italics.
>
>> LaTeX Font Warning: Font shape `EU1/Raleway(0)/m/it' undefined
>> (Font) using `EU1/Raleway(0)/m/n' instead on input line 5.

The problem is in raleway.sty:


\ifraleway@sfdefault
\setsansfont
[ UprightFont = *-\raleway@regstyle ,
BoldFont = *-\raleway@boldstyle ]
{Raleway}

For some reason, italic and bold-italic weren't specified.
Use the nosfdefault option.

Bob T.

Peter Flynn

unread,
Jul 14, 2016, 6:39:07 PM7/14/16
to
On 07/14/2016 08:26 AM, Bob Tennent wrote:
[snip]
> The problem is in raleway.sty:
>
>
> \ifraleway@sfdefault
> \setsansfont
> [ UprightFont = *-\raleway@regstyle ,
> BoldFont = *-\raleway@boldstyle ]
> {Raleway}
>
> For some reason, italic and bold-italic weren't specified.
> Use the nosfdefault option.

Hah! Missed that. Thanks very much. I just copied the file to my ~/texmf
tree and edited it there.

I have emailed the maintainer.

///Peter


0 new messages