[BUG] Math module does note apply font

Hello,

Using writer, I type dozens of formulas. In my latest document, I need to type formulas with the Latin Modern font. I downloaded it from this website (OTF package):
https://www.gust.org.pl/projects/e-foundry/latin-modern/download

As usual, I configure the format of my formulas and select LMRoman10 for both numbers and texts. It applies while I’m n the formula box, but as soon as I leave it, numbers and texts change for the default police.

I can’t understan why, as I never faced this problem before.

Could you help me please?

[EDIT1 : But funny thing, the font can be used in formulas to write variables. Just forget the numbers and text ! It’s so weird… I would have think that they should be recognized everywhere or nowhere… but it seems to be more complicated! ]

[EDIT2 : It hapens whith almost all my fonts. I’m starting to think that the problem is form LO itself. whatever it is a TTF or an OTF, the font can’t be used in formulas to write numbers or texts. Texts could be ok, but avoiding nmbers in a formula is quite challenging ! ]

System:
Kernel: 6.8.0-100-generic arch: x86_64 bits: 64 compiler: gcc v: 13.3.0 clocksource: hpet
Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.41 wm: xfwm4 v: 4.18.0 with: xfce4-panel
tools: light-locker vt: 7 dm: LightDM v: 1.30.0 Distro: Linux Mint 22 Wilma
base: Ubuntu 24.04 noble

LibreOffice:
Version: 26.2.0.3 (X86_64)
CPU threads: 8; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Flatpak
Calc: threaded

In Math (not Writer), have you gone through menu Format>Fonts and button Modify?

I went to the GUST site. The Latin Modern README tells these are Type 1 fonts which are no longer supported by LO. However I am not sure how to read the remark about Open Type. I checked wording for TeX Gyre font I use and know to be valid. It is not written the same. So, I can’t ascertain Latin Modern has been ported to “compatible” OTF.

1 Like

Hello,
First of all, thank you for your time !

I’ve tried the math module, and same problem here.
I’ve tried to convert .otf to .ttf, and .pfm to .ttf, and .pfb to ttf, nothing changes.

[EDIT : But funny thing, the font can be used in formulas to write variables. Just forget the numbers and text ! It’s so weird… I would have think that they should be recognized everywhere or nowhere… but it seems to be more complicated! ]

[EDIT2 : It hapens whith almost all my fonts. I’m starting to think that the problem is form LO itself. whatever it is a TTF or an OTF, the font can’t be used in formulas to write numbers or texts. Texts could be ok, but avoiding nmbers in a formula is quite challenging ! ]

It does not apply properly. I’m so confused… Writer uses the font with no problem, and I wasn’t aware this could be so hard to simply apply a font in a formula ! It has always been so smooth and plug and play.

Okay, I tried somthing new.

I created a new file with writer and now, in the formula box, WHICHEVER the font I want to use, it does not apply. I assume that it is a bug in LO itself, for even the DEJA VU font, wich i a basic one, can’t be applied. Quite annoying I can tell.

While testing your problem in my 25.8.5.2 under Fedora 43 (Linux) and KDE Plasma, I assigned a cursive script to text like a charm.

For further test, attach a sample document with your exact formula (perhaps add some text around it in the .odt for something more realistic).