jlatexmath-android icon indicating copy to clipboard operation
jlatexmath-android copied to clipboard

Omega rendering

Open noties opened this issue 6 years ago • 3 comments

https://github.com/noties/Markwon/issues/176

noties avatar Nov 22 '19 11:11 noties

It appears that Ω (defined as \Omega in LaTeX) symbol is not rendered by Android. It is defined in the /jlatexmath/jlatexmath/src/main/assets/org/scilab/forge/jlatexmath/fonts/latin/jlm_cmr10.ttf font and mapped to the 00AD symbol. Other glyphs from the same font are rendered OK. The nature of this behavior is unclear.

noties avatar Nov 22 '19 12:11 noties

Possible workaround is to use text mode to render Omega symbol:

\mbox{Ω}

Please note that this requires jlatexmath-android-font-greek dependency.

noties avatar Nov 22 '19 13:11 noties

Hi, I'm also using jlatexmath in android and had encountered the same problem. I didn't find the exact cause but have a solution. In jlatexmath, \Omega is placed in U+00AD in its fonts. If you change it to U+00AC or other places, it will be rendered properly. I think maybe it's because U+00AD is a somewhat special character in unicode and android is doing something special while rendering it.

zyy1214 avatar Oct 02 '22 08:10 zyy1214