# [XeTeX] Problem changing default fonts

Herbert Schulz herbs at wideopenwest.com
Fri Oct 1 23:46:15 CEST 2010

On Oct 1, 2010, at 11:47 AM, Drébon wrote:

> On 28/09/2010 00:25, Peter Dyballa wrote:
>> Update once more and hope that fontspec 2.1a will come!
>
> It is allready in that version...
>
> The command \huge \bf{\sf{Some Text}}}, do not print bold text...
>
> Maybe \bf and \sf are not accessible in xelatex ?
>
> Regards.
>
> --
> D.

Howdy,

A complete example would have been nice since you get an error because you have too many }'. Also \bf and \sf are old fashioned declarations left over from LaTeX 2.09 and behave the way they do in Plain TeX; they are mutually exclusive. What you want is

{\huge\textbf{\textsf{Some Text}}}

using commands, or, if you really want to use declarations

{\huge\bfseries\sffamily Some Text}

which works just fine.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)

`