getTextExtent

Get the pixel extent of a text string with specified font properties.
ダウンロード: 2
更新 2024/6/15

ライセンスの表示

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

引用

Eivind Hennestad (2025). getTextExtent (https://www.mathworks.com/matlabcentral/fileexchange/168156-gettextextent), MATLAB Central File Exchange. に取得済み.

MATLAB リリースの互換性
作成: R2024a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0