Skip to content

SILE picks the "wrong" Libertinus Math if several are available #2323

@KMickle

Description

@KMickle

I hit a problem with the current SILE version: it was not able to render any math. The error message clearly (as clearly as stack traces go) indicated the font metrics table for the math font was nil.
I read that "Libertinus Math" is considered the default font for SILE math. I installed that to no avail. I then downloaded the example math code and it did not render either.
Later I discovered that there are actually two versions of "Libertinus Math" in the wild: the ttf version and the otf version. The ttf version won't do. The otf version works fine.
Now the most confusing part: the library responsible for the font matching prefers ttf Libertinus over otf, so math rendering fails if both ttf and otf are available.
It would be good if the manual stated which fonts are "good" for math. Also, it is probably wise to scan all the font matches and pick the "best" match, not the "first".
I suspect this problem extends to non-math fonts, too, but not so noticeable there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Not My Bug3rd party issue outside of SILE's scope

    Type

    No type

    Projects

    Status

    To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions