Start a new topic
iink SDK on Device
Hey guys!
I'm having some issues working with the styling of my editor.
I'd manage to work the pen width and pen color properly, but I would like as well to reduce the size of the converted font and the space between the lines on the background
this is the code I'm currently using:
self.editor.theme = [NSString stringWithFormat:@".pen { color: %@; -myscript-pen-width: 0.35;}" "glyph.text {" " font-family: Avenir;" " font-size: 5.5;" " line-height: 0.9;" "}" ,penColor,penColor];
I tried with ".text" only (without "glyph") imitating how ".pen" works, but I couldn't get any changes on the text document.
In case it helps, the current state of the text is IINKConversionStateDigitalEdit. The final goal is to keep the text in this state.
Thanks!
Hi,
Yes it applies to both font size and line height in 'Text Document'.
This is now a limitation in 'Text Document' that we hope we can take out within one year.
Regards,
Gwenaëlle
Hello,
Thank you for your request.
I assume that you are working on a "Text Document" part and this is the reason why the ".text" has no effect:
It is currently not possible to modify the line spacing in a "Text Document" part. You could modify the line spacing if working on a "Text" part.
Hey Gwenaëlle.
Thanks for your answer. Does this apply as well for the font size?
Is there any plans on enabling this on the near future?
Thanks
Just GoNXaS
Hey guys!
I'm having some issues working with the styling of my editor.
I'd manage to work the pen width and pen color properly, but I would like as well to reduce the size of the converted font and the space between the lines on the background
this is the code I'm currently using:
I tried with ".text" only (without "glyph") imitating how ".pen" works, but I couldn't get any changes on the text document.
In case it helps, the current state of the text is IINKConversionStateDigitalEdit. The final goal is to keep the text in this state.
Thanks!
Hi,
Yes it applies to both font size and line height in 'Text Document'.
This is now a limitation in 'Text Document' that we hope we can take out within one year.
Regards,
Gwenaëlle
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstGwenaelle @MyScript
Hello,
Thank you for your request.
I assume that you are working on a "Text Document" part and this is the reason why the ".text" has no effect:
It is currently not possible to modify the line spacing in a "Text Document" part. You could modify the line spacing if working on a "Text" part.
Regards,
Gwenaëlle
Just GoNXaS
Hey Gwenaëlle.
Thanks for your answer. Does this apply as well for the font size?
Is there any plans on enabling this on the near future?
Thanks
Gwenaelle @MyScript
Hi,
Yes it applies to both font size and line height in 'Text Document'.
This is now a limitation in 'Text Document' that we hope we can take out within one year.
Regards,
Gwenaëlle