Dompdf\FrameReflower\Text
Reflows text frames.
Synopsis
class Text
extends AbstractFrameReflower
{
- // members
- protected Block $_block_parent;
- protected Text $_frame;
- public static string $_whitespace_pattern = "/[ \t\r\n\f]+/u";
- private FontMetrics $fontMetrics;
- // Inherited members from AbstractFrameReflower
- protected Frame $_frame;
- protected $_min_max_cache;
- // methods
- public void __construct()
- protected mixed _collapse_white_space()
- protected bool|int _line_break()
- protected bool|int _newline_break()
- protected void _layout_line()
- public void reflow()
- public void get_min_max_width()
- public $this setFontMetrics()
- public FontMetrics getFontMetrics()
- public float calculate_auto_width()
- // Inherited methods from AbstractFrameReflower
- public void __construct()
- public void dispose()
- public Dompdf get_dompdf()
- protected void _collapse_margins()
- public abstract mixed reflow()
- public array|null get_min_max_width()
- protected string _parse_string()
- protected array|null _parse_quotes()
- protected string|null _parse_content()
- protected void _set_content()
- public float calculate_auto_width()
Hierarchy
Tasks
Line | Task |
---|---|
120 | support <shy>, <wbr> |
Members
private
- $fontMetrics — Dompdf\FontMetrics
protected
- $_block_parent — Dompdf\FrameDecorator\Block
- $_frame — Dompdf\FrameDecorator\Text
- $_frame
—
Dompdf\Frame
Frame for this reflower - $_min_max_cache
—
array
Cached min/max size
public
- $_whitespace_pattern
Methods
protected
public
- __construct()
- calculate_auto_width() — Determine current frame width based on contents
- getFontMetrics()
- get_min_max_width()
- reflow()
- setFontMetrics()
Inherited from Dompdf\FrameReflower\AbstractFrameReflower
protected
- _collapse_margins() — Collapse frames margins http://www.w3.org/TR/CSS2/box.html#collapsing-margins
- _parse_content() — Parses the CSS "content" property
- _parse_quotes() — Parses a CSS "quotes" property
- _parse_string() — Parses a CSS string containing quotes and escaped hex characters
- _set_content() — Sets the generated content of a generated frame
public
- calculate_auto_width() — Determine current frame width based on contents
- dispose()
- get_dompdf()
- get_min_max_width() — Required for table layout: Returns an array(0 => min, 1 => max, "min" => min, "max" => max) of the minimum and maximum widths of this frame.
- reflow()