znjameswu / flutter_math

Math rendering and editing in pure Flutter.
https://znjameswu.github.io/flutter_math_demo/
Apache License 2.0
123 stars 52 forks source link

Special characters italic in text mode #36

Closed carlowenig closed 2 years ago

carlowenig commented 3 years ago

Hi there, first of all, great package!

I've encountered the following bug: When I type special characters (tested with ä, ö, ü) while being in text mode (inside \text{...}) they will appear in italic font. grafik This does not happen when being inside \mathrm{...}.

Currently I am using a workaround by replacing all ä, ö and ü characters with \"a, \"o and \"u (uppercase respectively), which are the classic LaTeX commands for these characters without using utf8 encoding. These commands work, so they are rendered as upright letters in text mode, but nevertheless this seems like a bug to me.

Using flutter_tex (KaTeX) this bug does not appear: grafik