Interactive Ink

Answered

IOS IINK: Styling text

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

image


 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!

 


Best Answer

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.


Regards,


Gwenaëlle

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

Answer

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