4

I want to use the Castellar font found in Word in a Latex document. Is there a way to use it in a Latex document even if it is only in the title? Here is an example of what I want.

enter image description here

yo'
  • 51,322
  • 1
    Welcome to TeX.SE, yes, if you have this font, then you can use it – MadyYuvi Jan 14 '23 at 05:15
  • 1
    In LuaLatex, \usepackage{fontspec} followed by \newfontfamily\castellar{Castellar}[Scale=MatchUppercase] should create a \castellar command. Does that work? – Davislor Jan 14 '23 at 05:49

1 Answers1

12

You can run all codes below by xelatex or lualatex.

Main Font

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Castellar}
% \setmainfont{CASTELAR.TTF}
\begin{document}
Test123
\end{document}

enter image description here

New Font Family

Thanks to @Davislor for his tips on \DeclareTextFontCommand.

\documentclass{article}
\usepackage{fontspec}
\newfontfamily\castellar{Castellar}[Scale=MatchUppercase]
% \newfontfamily\castellar{CASTELAR.TTF}[Scale=MatchUppercase]
\DeclareTextFontCommand{\textcastellar}{\castellar}
\begin{document}
Test123 {\castellar Test123} Test123\par
Test123 \textcastellar{Test123} Test123
\end{document}

enter image description here

Scale=MatchUppercase is to scale the font being selected to match the current default roman font to the height of the uppercase letters.

All Character in Castellar

\documentclass{article}
\usepackage{unicodefonttable}
\begin{document}
\displayfonttable{Castellar}
\end{document}

enter image description here

We can see there are no lowercase letters in Castellar font.

Clara
  • 6,012