C helpers for rendering text