Text

Is there a way to change the width of a pen in a text part

Hi,

Is there a way to change the width of a pen?

Piyush


Dear Piujsh,


please refer to the reference -> Styling part of the documentation: https://developer.myscript.com/docs/interactive-ink/1.2/reference/styling/#text


You should set the -myscript-pen-width property according to your needs.


Best regards,


Olivier

Thank you

Thanks Oliver.

I have imported some data and using 

editor.import_(MimeType.TEXT,"Hello",editor.getRootBlock());

The data is getting imported, but the size of text is quite big. How do i reduce the size of the text?

Piyush


Dear Piujsh,


this can be done tuning the font-size and line-height properties: https://developer.myscript.com/docs/interactive-ink/1.2/reference/styling/#text


Here is an example:

String styleSheet = new String(".text{font-size:5;line-height: 2.2;};");
editor.setTheme(styleSheet);


Best regards,


Olivier

Login or Signup to post a comment