registerFont

fun registerFont(key: String, family: FontFamily)

Register a custom font family the SDK can resolve by key when rendering io.ak1.drawbox.domain.model.Element.Text elements. Built-in keys (sans, serif, mono) ship with the SDK and don't need registration; calling this is for adding host-provided typefaces.

The registry is in-memory only — the host re-registers on app launch.