Table of contents
Namespace: Com\Tecnick\Pdf
Backing type: string
File: TextFitMode.php line 35
Backed enum for the text-cell auto-fit mode: ’’ disables auto-fit, otherwise T, S or F select a fit strategy (see Text::normalizeTextCellFitMode()).
Tags
- since: 2026-07-17
- category: Library
- author: Nicola Asuni info@tecnick.com
- copyright: 2002-2026 Nicola Asuni - Tecnick.com LTD
- license: https://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE)
- link: https://github.com/tecnickcom/tc-lib-pdf
Cases
Off
File: TextFitMode.php line 38
Truncate
File: TextFitMode.php line 41
Stretch
File: TextFitMode.php line 44
ShrinkFont
File: TextFitMode.php line 47
Methods
fromLoose()
File: TextFitMode.php line 58
public static fromLoose(string|self $value) : self
Accepts T, S or F (case-insensitive, surrounding whitespace trimmed) or an enum instance (returned unchanged). Any other value disables auto-fit (Off), matching Text::normalizeTextCellFitMode().
Parameters
- $value : string|self: Fit mode or enum case.
Return values
self