1

I have to use the Arial font and I do that as follows (Helvetica is close to Arial):

\renewcommand{\rmdefault}{phv} % Helvetica
\renewcommand{\sfdefault}{phv} % Helvetica

The other solution I have found is to use the commands:

\usepackage{helvet}
\renewcommand{\familydefault}{\sfdefault}

Both work and as far as I can see, both solutions look the same. I use the following packages for math fonts because it looks nice with Arial fonts:

\usepackage[amsthm,mathsfit]{libertinust1math}

I want to modify some font sizes as follows (it looks nice with 1, but it looks nicer with 1.2):

\makeatletter
\newcommand*{\LinuxLibertineT@scale}{1.2}
\makeatother

The issue I have is that the \mathcal fonts are apparently not scalable as far as I understand the problem. Is there any way to overcome the problem ? (I know nothing about fonts sorry)

10
  • 1
    This isn't Arial font. This is a free substitution of Helvetica. The fonts Helvetica and Arial differ.
    – wipet
    Commented Oct 7, 2023 at 9:18
  • I've taken the liberty of editing your posting -- specifically, of replacing all instances of "Aria" with "Arial". Incidentally, if you want 12pt instead of 10pt as the default document font size, just specify 12pt as one of the optional arguments of the \documentclass instruction: \documentclass[12pt,...]{...}.
    – Mico
    Commented Oct 7, 2023 at 9:23
  • 2
    @wipet - While technically true, your observation that Helvetica and Arial differ is probably less than helpful for someone who has stated up front to "know nothing about fonts". Arial is a drop-in replacement clone of Helvetica. If not for the shapes of the "R", "t" and "a" glyphs, even many real font experts have to slow down and take a rather close look before being able to tell any difference between Helvetica and Arial. The OP's issue is not with Helvetica not being identical to Arial; instead, it's with an unsuitable math font.
    – Mico
    Commented Oct 7, 2023 at 9:37
  • @wipet I knew that Arial and Helvetica differ slightly :-). But it does not seem to be possible to install Arial in my Ubuntu computer (after browsing this forum) without a headache and Helvetica is close enough to Arial I think. Commented Oct 7, 2023 at 11:30
  • 1
    You don't need to install Arial, just don't call Helvetica Arial.
    – wipet
    Commented Oct 7, 2023 at 17:16

1 Answer 1

5

In libertinust1math.sty, \mathcal font is stixcal.

\documentclass{article}
\usepackage[amsthm,mathsfit]{libertinust1math}
\makeatletter
\newcommand*{\LinuxLibertineT@scale}{1.2}
\makeatother
\DeclareFontShape{U}{stixcal}{m}{n} {<->s*[1.2]stix-mathcal}{}
\DeclareFontShape{U}{stixcal}{b}{n} {<->s*[1.2]stix-mathcal-bold}{}
\begin{document}
test $t$ $\mathcal{A}$
\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .