Processing (BETA) version 135+ のリファレンスです。 旧バージョン使用者はソフトウェア内のリファレンスを参照してください。
この文書は Processing のAPIリファレンスを日本語に訳したものです。 最新の内容は 英語版 で確認して下さい。


Name

textDescent()

Examples
example pic
PFont font;
font = loadFont("FFScala-32.vlw"); 
textFont(font);

textSize(32); 
float descent = textDescent();
text("dp", 0, 70);
line(0, 70+descent, 100, 70+descent); 

textSize(64);
descent = textDescent();
text("dp", 35, 70);
line(35, 70+descent, 100, 70+descent);
Description 現在のフォントサイズのディセントを返します。 この情報はベースラインから下の深度を求める際に役立ちます。 例えば、textAscent()textDescent() に値を加えることはラインの高さの合計を与えることと同じです。
Syntax
textDescent()
Parameters
Usage Web & Application
Related textAscent()
Updated on September 28, 2006 06:37:22pm PDT

Creative Commons License

この文書の原文はクリエイティブ・コモンズ(Creative Commons)Attribution-Noncommercial-Share Alike(表示・非営利・継承) ライセンスで公開されています。 このライセンスは同一の許諾条件の下で原作者のクレジットを表示し、また作品を営利目的で利用しなければ、作品に対して複製、頒布、展示、実演、二次的著作物の作成が行えることを示します。

© 2007 Processing.org