insert Text
fun insertText(text: String, position: Offset = Offset.Zero, fontSize: Float = 24.0f, fontFamilyKey: String = io.ak1.drawbox.domain.model.DEFAULT_FONT_FAMILY_KEY, alignment: TextAlignment = io.ak1.drawbox.domain.model.TextAlignment.LEFT, color: Color = Color.Black)
Place a plain-text block on the canvas. text may be empty — the sample-app modal-editor flow inserts an empty block first and then dispatches updateText when the user commits content.
fontFamilyKey must be a key registered via registerFont or one of the built-in keys (sans, serif, mono); unknown keys fall back to sans at render time.