iink SDK on Device

Answered

How to change font size of converted text

editor.setTheme("glyph.text { font-weight: 900; font-size: 10} ");

I am trying to change font size of converted text, but it is not reflecting on text block of text document. Is it possible?


image




Best Answer

Dear Dipannita,


I guess you are in a "Text Document" part and not a "Text" part?


Indeed, as indicated in the documentation: https://developer.myscript.com/docs/interactive-ink/1.3/reference/styling/#text

Currently the .textfont-size and line-height parameters only affect “Text” content type, not “Text Document”.


Best regards,


Olivier


Dear Dipannita,


currently, you shall apply the setTheme as follows: editor.setTheme(".text{font-weight: 900; font-size: 10;}");


Best regards,


Olivier

I have used editor.setTheme(".text{font-weight: 900; font-size: 30;}");  but has no effect on converted text. Please check bellow

image


Answer

Dear Dipannita,


I guess you are in a "Text Document" part and not a "Text" part?


Indeed, as indicated in the documentation: https://developer.myscript.com/docs/interactive-ink/1.3/reference/styling/#text

Currently the .textfont-size and line-height parameters only affect “Text” content type, not “Text Document”.


Best regards,


Olivier