mksmbrtsh / jlatexmath-android

aJLaTeXMath Library - Displays LaTeX commands in android OS.
https://play.google.com/store/apps/details?id=maximsblog.blogspot.com.jlatexmath
Other
182 stars 33 forks source link

some command is not work #1

Open wlsee014 opened 8 years ago

wlsee014 commented 8 years ago

hi,

\Omega is not work, but \omega is work

thx

mksmbrtsh commented 7 years ago

Hi, this is exactly the bug when I'm porting . The desktop version is no error. I will seek this error.

mksmbrtsh commented 6 years ago

Hi. I put this: if((int)cf.c == 173 && cf.fontId == 18){ info = fontInfo[id]; Typeface font = Typeface.DEFAULT; return new Char("\u03A9".charAt(0), font, id, getMetrics(cf, factor * fsize)); } to DefaultTeXFont and fix this but. Kostili (костыли) crutches.

zyy1214 commented 2 years ago

It seems that Canvas can't draw the text "\u00ad", and since \Omega is using this unicode place in jlm_cmr10.ttf and other font files, it can't be drawn normally. A possible solution is to create new ttf files with \Omega in other places such as \u00c6. I tested it and it works.