text position classic 5 vs online.

goldenj shared this question 3 years ago
Answered

So I tend to make things in the desktop (Classic 5) but when I uploaded the latest, relative position of the text is screwed up. All the Xs are defined to have absolute position. I'm trying to understand what's happening and get a fix.

Online: https://www.geogebra.org/m/kqnuzeep

Classic file attached. Images as well.

Comments (5)

photo
1

You are relying on fonts on different computers (or even the same computer!) having exactly the same metrics


I suggest using some or all of

a) use all LaTeX text if you need pixel perfection

b) FormulaText("\xcancel{0}")

c) \tt for monospaced text FormulaText("\tt{0\;1\;2\;3\;4\;5\;6\;7\;8\;9") for equal spacing

d) FormulaText(Sum(Sequence(If(i!=3, ""+i, "\red{\xcancel{"+i+"}}"),i,0,9)))

photo
1

Thanks! The TeX solved the issue first try.

photo
1

what should i do with the above commands I confront this problem when embedding the applets with local language text

text elongates and exceeds the frame please help

photo
1

You'll need to leave enough space to allow for slightly different text sizes

photo
1

Thanks sir, Problem is only when accessing in mobile phones

photo
© 2023 International GeoGebra Institute