.. _ScriptUIFont: ================================================ ScriptUIFont ================================================ Description ----------- Encapsulates the qualities of a font used to draw text into a control. Create with the?newFont()?method.Used as a value of?font. Passed as an argument to?drawString()?and?measureString(). Properties ^^^^^^^^^^ +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`family` readonly | The font family name. | +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`name` readonly | The complete font name, consisting of the family and style, if specified. | +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`size` readonly | The font point size. | +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`style` readonly | The font style. One of the constants in?ScriptUIGraphics.FontStyle. | +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`substitute` readonly | The name of a substitution font, a fallback font to substitute for this font if the requested font family or style is not available. | +-----------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------+ .. container:: hide .. toctree:: :hidden: :maxdepth: 1 ScriptUIFont/family.rst ScriptUIFont/name.rst ScriptUIFont/size.rst ScriptUIFont/style.rst ScriptUIFont/substitute.rst