Processing (BETA) version 135+ のリファレンスです。
旧バージョン使用者はソフトウェア内のリファレンスを参照してください。
この文書は Processing のAPIリファレンスを日本語に訳したものです。
最新の内容は 英語版 で確認して下さい。
| Name | textWidth() |
||
|---|---|---|---|
| Examples | ![]() PFont font;
font = loadFont("FFScala-32.vlw");
textFont(font, 32);
char c = 'T';
float cw = textWidth(c);
text(c, 0, 40);
line(cw, 0, cw, 50);
String s = "Tokyo";
float sw = textWidth(s);
text(s, 0, 85);
line(sw, 50, sw, 100); |
||
| Description | 文字、または文字列の幅を計算して返します。 | ||
| Syntax | textWidth(data) |
||
| Parameters |
|
||
| Usage | Web & Application | ||
| Related | loadFont() PFont text() textFont() |
この文書の原文はクリエイティブ・コモンズ(Creative Commons)のAttribution-Noncommercial-Share Alike(表示・非営利・継承) ライセンスで公開されています。
このライセンスは同一の許諾条件の下で原作者のクレジットを表示し、また作品を営利目的で利用しなければ、作品に対して複製、頒布、展示、実演、二次的著作物の作成が行えることを示します。
© 2007 Processing.org
© 2007 Processing.org


