xaml-math icon indicating copy to clipboard operation
xaml-math copied to clipboard

Provide alternative fonts for formulas

Open ForNeVeR opened this issue 2 years ago • 6 comments

Eventually, we'll need to provide alternatives to Computer Modern we use currently.

Depends on:

  • [ ] #109
  • [ ] #235
  • [ ] #47
  • [ ] #156

ForNeVeR avatar Jan 06 '23 20:01 ForNeVeR

Hi. Any coming updates on new fonts?

msthrax avatar Jun 17 '23 20:06 msthrax

We have made some progress on automated font metric extraction, but that's it.

If you only want to change font of text and not formulas, then just use \text{ … }: this is customizable.

ForNeVeR avatar Jun 18 '23 09:06 ForNeVeR

Actually I need subscript and superscript in my app. I handled that with your library which was great but default font doesn't look good. Can you suggest a way to show subscript and superscript text in WPF App? Thank you. 🙂

msthrax avatar Jun 23 '23 07:06 msthrax

something^{\text{ … }} is also supposed to work, IIRC.

Also, it may depend on the kind of information you want to sub/superscript, but most modern fonts have a separate set of sub/superscript characters (I can't remember if they include all the letters or not).

See this page for an overview.

ForNeVeR avatar Jun 23 '23 08:06 ForNeVeR

As you said, I tested "something^{\text{ … }}" and actually it worked. But my next problem was changing the font and size. I used SystenFontName property to change font family but could do anything with font size. Is there any way for that? Thank U.

msthrax avatar Jun 27 '23 21:06 msthrax

So far, there are no specific controls for the "system font" size. You can only change it together with the math font size, by controlling the scale of the whole formula.

ForNeVeR avatar Jun 28 '23 19:06 ForNeVeR