I want to use suetterlin font as a math alphabet (in a bold and medium version).
This is how far I got (without any manual font conversions....)
\documentclass[convert={density=10000}]{standalone}
\usepackage{amsmath}
\DeclareMathAlphabet{\mathsuet} {T1} {wesu}{bx}{sl}
\pdfpkmode{dpdfezzz}
\pdfpkresolution=8000
\usepackage{bm}
\begin{document}
\fbox{{
$\bm n n$
$\pmb{\mathsuet n}\, \mathsuet n$
}}
\end{document}
As one can see, the thickness of the lines is similar to the normal alphabet... But the bold Version (made with \pmb
) is not very nice at the line ends...
I found the definition of \pmb
in amsbsy
:
\DeclareRobustCommand{\pmb}{%
\ifmmode\else \expandafter\pmb@@\fi\mathpalette\pmb@}
And the definition of \pmb@
\def\pmb@#1#2{\setbox8\hbox{$\m@th#1{#2}$}%
\setboxz@h{$\m@th#1\mkern.5mu$}\pmbraise@\wdz@
\binrel@{#2}%
\dimen@-\wd8 %
\binrel@@{%
\mkern-.8mu\copy8 %
\kern\dimen@\mkern.4mu\raise\pmbraise@\copy8 %
\kern\dimen@\mkern.4mu\box8 }%
}
I have got no idea what this code does, but I assume it should be possible to shift the reprinted characters (by redefining \pmb
) so that the line ends look smoother?
A previous version of the question contained the definition of \pmb@@
, which is only for non-math mode.
\def\pmb@@#1#2#3{\leavevmode\setboxz@h{#3}%
\dimen@-\wdz@
\kern-.5\ex@\copy\z@
\kern\dimen@\kern.25\ex@\raise.4\ex@\copy\z@
\kern\dimen@\kern.25\ex@\box\z@
}
\mathsuet
already takes the (extended) bold version of of the suetterlin font (which is still very thin), see line 3 of the code:\DeclareMathAlphabet{\mathsuet} {T1} {wesu}{bx}{sl}
\kern\dimen@\kern.25\ex@\raise.4\ex@\copy\z@
just shifts the letter by that amount and overprints 3 times, you can add more of them overprinted by different amounts to try to smooth it off