I am trying to move to the XeTeX distribution. My current problem is the following:
If I leave these packages I have no problems with the Helvetica.
\usepackage[portuges,english]{babel}
\usepackage[T1]{fontenc}
\usepackage[scaled]{helvet}
\renewcommand*\familydefault{\sfdefault}
However, if I define the XeTeX packages and font like:
\usepackage{mathspec}
\defaultfontfeatures{Mapping=tex-text}
\setmainfont{Helvetica}
\usepackage{polyglossia}
\setmainlanguage[variant=uk]{english}
\setotherlanguage{portuges}
\usepackage{xunicode}
\usepackage{unicode-math}
Then I get warnings about missing font shapes, namely:
LaTeX Font Warning: Font shape `EU1/phv/b/n' undefined
LaTeX Font Warning: Font shape `EU1/Helvetica(0)/m/sc' undefined
I have also tried:
\usepackage{mathspec}
\defaultfontfeatures{Mapping=tex-text}
\usepackage[scaled]{helvet}
\renewcommand*\familydefault{\sfdefault}
But then the font shapes got even worse.
Has someone faced this problem?
EDIT:
Now I have the following packages:
\usepackage{mathspec}
\defaultfontfeatures{Mapping=tex-text}
\setmainfont[
Extension=.otf,
UprightFont= *-regular,
BoldFont=*-bold,
ItalicFont=*-italic,
BoldItalicFont=*-bolditalic,
]{texgyreheros}
\usepackage{polyglossia}
\setmainlanguage[variant=uk]{english}
\setotherlanguage{portuges}
\usepackage{xunicode}
\usepackage{unicode-math}
And the template I started with has the following command:
\newcommand{\helv}{ %
\fontfamily{phv}\fontseries{b}\fontsize{9}{11}\selectfont}
I honestly don't know what it is doing to the font, but I do know it's the last resistant:)
.
Warning is:
LaTeX Font Warning: Font shape `EU1/phv/b/n' undefined
If I remove the \fontfamily
command I get
LaTeX Font Warning: Font shape `EU1/texgyreheros(0)/b/n' undefined
This command is being applied in the Header and Footer of the document.
I don't know what the \fontfamily
does, but I assume \fontseries
defines the font to be Bold. Is there a redefinition of the command required to match XeTeX?
helvet
package uses faked small caps and Linotype doesn't sell any small caps variant.