MyScript iink SDK makes it easy to style content with css properties listed in this page.
In addition to these css styling properties, you can adjust its default configuration with different options presented here.
The behavior in a “Text Document” part is as follows:
Underlining an entire paragraph of text or setting programmatically the text format of a selection allows you to cycle through text-heading1 (double underline), text-heading2 (simple underline) and basic text (no
underline).
Underlining a portion of text allows you to cycle through text-emphasis1 (simple underline), text-emphasis2 (double underline) and basic text (no underline).
Circling over a portion of text allows you to apply text-highlight, circling again removes it.
Default class for drawing items in a “Raw Content” part. See details below.
The recognition feedback via styling in a Raw Content part behaves as follows:
To apply .raw-content-anim-fill styling class, iink needs you to both activate the shape recognition with the [raw-content.recognition.types] property and sets the raw-content.recognition.feedback property to animation-fill.
To apply .raw-content-fill styling class, iink needs you to both activate the shape recognition with the [raw-content.recognition.types] property and sets shape in the raw-content.interactive-blocks.feedback property.
To apply .raw-content-shape, .raw-content-text and .raw-content-drawing styling classes, iink needs you to activate the raw-content.feedback.type. Then:
if the shape recognition is disabled, .raw-content-text styling properties will apply to text blocks and raw-content-drawing to the rest of the content.
if the shape recognition is enabled, .raw-content-text styling properties will apply to text blocks, .raw-content-shape to shape items and raw-content-drawing to the rest of the content.
The following classes apply for block visual feedback:
Note that “Text” and “Text Document” guides spacings are not identical.
For “Text” parts, the spacing of handwriting guides (if enabled) is given by font-size * line-height.
For “Text Document” parts, the guides spacing considers the font-size and line-height product too. But some more computation adjusts the line gap.
For instance, the following CSS will correspond to a 13-millimeter spacing when the theme is set to a “Text” part. For a “Text Document” part, the example is still valid but the outcome might be slightly different.
.text{font-size:10;line-height:1.3;}
In both cases, to avoid visual artifacts, you should change the editor theme before opening the part.
framed - Rectangular frame drawn around the content and background color.
circled - Rounded frame drawn around the content and background color.
framed-outline - Rectangular frame around the content, no background is drawn.
framed-background - Rectangular frame around the content with only the background being rendered.
circled-outline - Circle frame around the content, no background is drawn.
circled-background - Circle frame around the content with only the background being rendered.
The highlight background color is the pen color with alpha, and the frame color is the pen color.
iink computes the default line height and font size based on the device resolution instead of using a static css containing default values. ↩↩2↩3↩4↩5↩6↩7↩8↩9↩10↩11