Don't mix up: variable, its value and presentation of a string.
You don't "print a variable", you and don't "print" anything!
Even if "
font.show_text
" API existed I would not use such API as it's a wrong abstraction.
Your answer depends on the UI library you use (always use tags: WPF, WinForm, or what?).
When you say "SDL", you should explain what of the possible meanings do you imply, see for disambiguation:
http://en.wikipedia.org/wiki/SDL[
^] :-).
Typically, you use
Control
of
FrameworkElement
(WPF only) to present a string in the UI. They all have the property
Font
. As simple as that.
—SA