Formulas : Font alternatives options?

Hi,

I’m a school teacher and I use the Andika Fonts for easier readability for my students.
Andika has embedded alternatives for “7” and “4”, similar to how we write them here, in France.

I can access these alternatives within the font options in Writer, but I can’t access them in the OLE Formulas editor. I manage to chose the Andika Font for Text and Numbers, but it doesn’t follow the alternatives I set up in Writer.

Is it possible ?

Since there is no easy UI to access font features in Math, you must encode feature requirement yourself in the font specification.

Since the Andrika font is not installed on my system (and I don’t intend to do so), I’ll take the example of TeX Gyre Termes which offers “ordinary” zero and slashed zero. The variant designator is zero.

To use slashed zero in Math:

  1. open Format>Fonts
  2. press Modify>Numbers
  3. select the font from the drop-down menu or enter manually its name
  4. at the end of the name add :zero=1 (don’t forget the colon : which separates the name from designators)
  5. OK

Now, the formula displays slashed zeroes.

In your case, find the variant designator for your alternate digit forms (as reported in Font tab of character or paragraph styles after you enabled it through the Features button) and enable it (usually with =1 after the designator).

PS: when asking here, always mention OS name, exact LO version and save format.

1 Like

Hi, thanks for answering so quickly !

Sorry for forgetting to detail my computeur environnement :
System : Fedora 42
LibreOffice : 25.2.6.2
Save Format : .odt

I didn’t know we could write the options directly after the name of the font.

While waiting for an answer, I tried to make one of the version of this font work.
(Andika 7, Andika 6, Andika Compact, Andika Basic, Andika New Basic)
And I understood that the options chosen for some caracters were then written after the colon :

designators are : cv04 for the 4, cv07 for the 7 and other cvXX for other caracters.
cv stands for caracter variation

Unfortunately most versions seemed buggy, because the designators were almost always wrong, except for Andika New Basic (based on v 5.500)

I now have everything I need to format my documents !

Thanks again !