Interactive Ink

How to change the size of mathematical expression after conversion in math mode

I am developing applications using Android's Interactive Ink.

I'd like to change the size of mathematical expressions converted in math mode.

I know that the text converted in text mode can be resized with the "setTheme" method.

 

editor.setTheme("glyph.text { font-size: 20; }")


However, I do not know how to change the size of the converted formula.

Is it possible to resize the converted formula?

1 Comment

Hi kousuke fujii,

On Math blocks, `font-size` is not taken into account as our Math engine needs to stretch glyphs in order to render a nice equation. 

If you are using a Text Document part, then for the time being there is now way to change the font size of a Math block.

If you are using a Math part, then we'll ensure the converted equation fits into the current view, with some margins defined in the configuration (see for example `math.margin.top` in  iink SDK configuration documentation) - so you could play your view size and margins to ensure the converted equation fits where you want.

Best Regards,

Gildas

Login or Signup to post a comment