jianzhongli / MathView

A library for displaying math formula in Android apps.
Apache License 2.0
1.01k stars 188 forks source link

Not Show "A" character on Lenovo P780 running Android 4.2.1 (API 17) #2

Closed iqbalhafidh closed 7 years ago

iqbalhafidh commented 8 years ago

Not Show "A" character on Lenovo P780 running Android 4.2.1 (API 17) it make me crazy, because it just "A" Character and NOT for another character

my Tex look like this :

$${ A }{ 1 }=\frac { \pi { d }{ 1 }^{ 2 } }{ 4 } $$

a - character problem

And then it show up like this

Where's my A Character??

!@#$%^&*()

Need Help

Thanks

jianzhongli commented 8 years ago

@iqbalhafidh Thank you for your feedback. You will be notified when the bug is fixed.

jianzhongli commented 8 years ago

@iqbalhafidh After some investigation, I found that it's a konwn bug of MathJax on Android WebView. The native WebView failed to read the provided .woff fonts correctly and the issue remains unsolved in the latest official version of MathJax.

Fortunately someone came up with a solution. I have already replaced the .woff font files with tweaked .otf files and pushed an updated version of MathView to jcenter. You can switch the dependency version to 0.0.2 (compile 'io.github.kexanie.library:MathView:0.0.2'). The character 'A' should be normal now.

Reference:

  1. https://github.com/mathjax/MathJax/issues/403
  2. https://github.com/mathjax/MathJax/issues/369
  3. https://groups.google.com/forum/#!msg/mathjax-users/j0ohai-plEM/_if2-RBBdNUJ
iqbalhafidh commented 8 years ago

Great.. It works now

a - character problem

Thanks kexanie for fastest response