Home
My Account
About us
Products
Support Services
Buy online
Downloads
Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
PHP Manual
UI
Installing/Configuring
UI\Point
UI\Size
UI\Window
UI\Control
UI\Menu
UI\MenuItem
UI\Area
UI\Executor
UI\Controls\Tab
UI\Controls\Check
UI\Controls\Button
UI\Controls\ColorButton
UI\Controls\Label
UI\Controls\Entry
UI\Controls\MultilineEntry
UI\Controls\Spin
UI\Controls\Slider
UI\Controls\Progress
UI\Controls\Separator
UI\Controls\Combo
UI\Controls\EditableCombo
UI\Controls\Radio
UI\Controls\Picker
UI\Controls\Form
UI\Controls\Grid
UI\Controls\Group
UI\Controls\Box
UI\Draw\Pen
UI\Draw\Path
UI\Draw\Matrix
UI\Draw\Color
UI\Draw\Stroke
UI\Draw\Brush
UI\Draw\Brush\Gradient
UI\Draw\Brush\LinearGradient
UI\Draw\Brush\RadialGradient
UI\Draw\Text\Layout
UI\Draw\Text\Font
UI\Draw\Text\Font\Descriptor
UI Functions
UI\Draw\Text\Font\Weight
UI\Draw\Text\Font\Italic
UI\Draw\Text\Font\Stretch
UI\Draw\Line\Cap
UI\Draw\Line\Join
UI\Key
UI\Exception\InvalidArgumentException
UI\Exception\RuntimeException
UI\Draw\Text\Layout::setWidth
UI\Draw\Text\Font::__construct
UI
Last updated: Mon, 26 Oct 2026
Represents a Font
(UI 0.9.9)
Introduction
Loads a described font
Class synopsis
class
UI\Draw\Text\Font
{
/* Constructor */
public
function
__construct
(
UI\Draw\Text\Font\Descriptor
$descriptor
)
/* Methods */
public
function
getAscent
():
float
public
function
getDescent
():
float
public
function
getLeading
():
float
public
function
getUnderlinePosition
():
float
public
function
getUnderlineThickness
():
float
}
Table of Contents
UI\Draw\Text\Font::__construct
— Construct a new Font
UI\Draw\Text\Font::getAscent
— Font Metrics
UI\Draw\Text\Font::getDescent
— Font Metrics
UI\Draw\Text\Font::getLeading
— Font Metrics
UI\Draw\Text\Font::getUnderlinePosition
— Font Metrics
UI\Draw\Text\Font::getUnderlineThickness
— Font Metrics
UI\Draw\Text\Layout::setWidth
UI\Draw\Text\Font::__construct
UI
Last updated: Mon, 26 Oct 2026