2

How would you increase the size of the following glyph?

\documentclass{article}
\usepackage{ifthen}

\font\myfont = "Wingdings"

\begin{document}%
\raggedright

\myfont\XeTeXglyph190

\end{document}
  • For example, \font\myfont = "Wingdings" at 20pt. – Akira Kakuto Aug 11 '17 at 23:18
  • Perfect. That's fantastic. Thanks very much. – Pravin Aug 11 '17 at 23:20
  • 3
    If you loaded the font using latex font declarations rather than the \font primitive then latex size commands such as \large or \fontsize{..}{..} would work. – David Carlisle Aug 12 '17 at 0:14
4

As David Carlisle says in the comments, don't use TeX font loading commands in LaTeX. Load the font properly using LaTeX commands and everything works as you expect. It's helpful to define a \text...{...} command for fonts declared with \newfontfamily. I've shown how to do that too.

\documentclass{article}
\usepackage{fontspec}
\newfontfamily\myfont{Wingdings}
\DeclareTextFontCommand{\textwing}{\myfont}

\begin{document}%
\raggedright
{\footnotesize\textwing{\XeTeXglyph190}}
{\textwing{\XeTeXglyph190}}
{\large\textwing{\XeTeXglyph190}}
{\Large\textwing{\XeTeXglyph190}}
{\huge\textwing{\XeTeXglyph190}}
{\Huge\textwing{\XeTeXglyph190}}


\end{document}

output of code

  • I guess it should be \newfontface, unless Wingdings has alternate shapes. One can also say \newfontface{\myfont}{Wingdings}[Scale=2] if the glyphs are to be magnified at every point of usage. – egreg Aug 12 '17 at 9:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.