getTextExtent
Version 1.0.0 (2,11 KB) von
Eivind Hennestad
Get the pixel extent of a text string with specified font properties.
Description
This function gets the text extent of a text string. Useful if the exact extent of text in GUIs is needed.
Example
>> getTextExtent('Hello World', ...
'Name', 'Avenir Next', ...
'Size', 14, ...
'Weight', 'bold')
ans =
82.0000 19.5000
Zitieren als
Eivind Hennestad (2025). getTextExtent (https://de.mathworks.com/matlabcentral/fileexchange/168156-gettextextent), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2024a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
| Version | Veröffentlicht | Versionshinweise | |
|---|---|---|---|
| 1.0.0 |
