array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'ui-draw-text-font-descriptor.construct.php', 1 => 'UI\\Draw\\Text\\Font\\Descriptor::__construct', ), 'up' => array ( 0 => 'class.ui-draw-text-font-descriptor.php', 1 => 'UI\\Draw\\Text\\Font\\Descriptor', ), 'prev' => array ( 0 => 'class.ui-draw-text-font-descriptor.php', 1 => 'UI\\Draw\\Text\\Font\\Descriptor', ), 'next' => array ( 0 => 'ui-draw-text-font-descriptor.getfamily.php', 1 => 'UI\\Draw\\Text\\Font\\Descriptor::getFamily', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/ui/ui/draw/text/font.descriptor/construct.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(UI 0.9.9)
UI\Draw\Text\Font\Descriptor::__construct — Construct a new Font Descriptor
$family
,$size
,$weight
= UI\Draw\Text\Font\Weight::Normal,$italic
= UI\Draw\Text\Font\Italic::Normal,$stretch
= UI\Draw\Text\Font\Stretch::NormalShall construct a new Font Descriptor
family
The name of a valid family of fonts
size
The preferred size
weight
UI\Draw\Text\Font\Weight constant
italic
UI\Draw\Text\Font\Italic constant
stretch
UI\Draw\Text\Font\Stretch constant