Start a new topic
Text
Hi,
Is there a way to change the width of a pen?
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
font-size
line-height
Here is an example:
String styleSheet = new String(".text{font-size:5;line-height: 2.2;};"); editor.setTheme(styleSheet);
Best regards,
Olivier
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.
-myscript-pen-width
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 Agarwal
Hi,
Is there a way to change the width of a pen?
Piyush
Dear Piujsh,
this can be done tuning the
font-size
andline-height
properties: https://developer.myscript.com/docs/interactive-ink/1.2/reference/styling/#textHere is an example:
Best regards,
Olivier
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstOlivier @MyScript
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
Piyush Agarwal
Thank you
Piyush Agarwal
Thanks Oliver.
I have imported some data and using
The data is getting imported, but the size of text is quite big. How do i reduce the size of the text?
Piyush
Olivier @MyScript
Dear Piujsh,
this can be done tuning the
font-size
andline-height
properties: https://developer.myscript.com/docs/interactive-ink/1.2/reference/styling/#textHere is an example:
Best regards,
Olivier