Libertinus: Support for calligraphic characters in Libertine Math

Created on 19 Jan 2016  路  9Comments  路  Source: alerque/libertinus

Calligraphic characters (the \mathcal range) don't appear to be supported in Libertine Math:

\documentclass[11pt]{article}
\usepackage{fontspec}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb}

\usepackage{unicode-math}

\setmainfont[Numbers=OldStyle,Ligatures=TeX]{Libertine Serif}
\newfontfamily{\Lpnum}[Numbers=Lining,Ligatures=TeX]{Libertine Serif}
\setsansfont[Ligatures=TeX]{Libertine Sans}

\setmathfont{Libertine Math}

\begin{document}
${\cal A B C D E F G H I J K L M N O P Q R S T U V W X Y Z}$ ${\cal H}_i$
\end{document}

produces, with both LuaTeX and XeTeX,

screen shot 2016-01-19 at 9 52 04 am

XITS Math has a full range I can use with \setmathfont[range={\mathcal,\mathbfcal}]{xits-math.otf}, but it'd be nice if Libertine Math had its own set (perhaps borrowed from XITS or elsewhere).

Thanks for the otherwise lovely fonts.

enhancement script math

Most helpful comment

Any news on the calligraphic alphabet?

All 9 comments

(Moving discussion here from #39.)

I've dug around for OpenType fonts with calligraphic alphabets under the Open Font License or similar; the only three I've found are XITS/STIX, Asana Math, and the brand-spanking-new TeX Gyre DejaVu Math, based on the DejaVu sans-serif font. (Not quite OFL, but the license seems very liberal.)

I put together some vaguely mathematical gibberish to test a few of the characters in actual use, plus the whole range of the alphabet, using Libertinus Math as the base.

Screenshots of each:
screen shot 2016-05-21 at 2 25 18 pm
screen shot 2016-05-21 at 2 26 05 pm
screen shot 2016-05-21 at 2 26 37 pm

The DejaVu characters don't seem to fit at all, but XITS seems like a fairly good match, and I may use its calligraphic characters until they can be added to Libertinus.

Source: mathcal.tex.txt

I hope this proves helpful.

I鈥檓 fine with XITS if others agree it is a good match (it seems fine from these screenshots).

Of those presented, XITS has my vote.

Please test and report any issues with the script alphabet.

Just swapped in the updated font to my thesis proposal. Looks very good. Thanks for the very quick update!

My only comment is that I am not sure about the placement of subscripts:

screen shot 2016-05-23 at 12 13 19 am

I'm not sure whether the subscript _t_ should be pulled in closer; maybe it needs italic correction?

Yes, the spacing of scripts alphabet in STIX leaves a a lot to be desired. I thought I fixed it to some degree in XITS, but I鈥檒l look again.

Is it also possible to include the stylistic set for calligraphic. With xits, I can use the following:

\setupbodyfont[xits]
\starttext
$\cal ABCDE$
\setupmathematics[stylealternative={calligraphic}]
$\cal ABCDE$
\stoptext

but the same code does not work with Libertinus. Not sure if this is due to the missing stylistic set or the missing .lfg file

Libertinus does not have alternate calligraphic alphabet, and since Unicode seem to have promised to encode one in the future, I鈥檓 going to wait for that.

Any news on the calligraphic alphabet?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kopeckyf picture kopeckyf  路  6Comments

rolfn picture rolfn  路  5Comments

iandoug picture iandoug  路  8Comments

kauesena picture kauesena  路  6Comments

tukusejssirs picture tukusejssirs  路  6Comments