module

Tryst::UI::NamedFonts

Symbol shorthand for Tk's own named system fonts - font: :heading instead of the raw "TkHeadingFont" string. A named font is already a single atomic Tk word (a reference to a font object Tk maintains itself), so resolving one needs no list-building the way Font#to_tcl does.

Constants

TCL_NAMES = {:default => "TkDefaultFont", :fixed => "TkFixedFont", :heading => "TkHeadingFont", :caption => "TkCaptionFont", :small => "TkSmallCaptionFont", :icon => "TkIconFont", :menu => "TkMenuFont", :tooltip => "TkTooltipFont"} of Symbol => String

Class methods

resolve(name : Symbol) : String
Source