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


Name

textLeading()

Examples
example pic
PFont font;
// The font must be located in the sketch's 
// "data" directory to load successfully 
font = loadFont("EurekaMonoCond-Bold-14.vlw");
// Text to display. The "n" is a "new line" character
String lines = "LIN1nLIN2nLIN3"; 
textFont(font, 14); 
textLeading(10);
text(lines, 5, 25); 
fill(126);  // Set value to gray
textLeading(20);
text(lines, 36, 25);
fill(0);    // Set value to black
textLeading(30);
text(lines, 68, 25);
Description テキストの行間を指定します。 この指定は、その後に出現する全ての text() に影響を与えます。
Syntax
textLeading(dist)
Parameters
dist int or float: the size in pixels for spacing between lines
Usage Web & Application
Related loadFont()
PFont
text()
textFont()
Updated on September 23, 2006 05:40:19pm PDT

Creative Commons License

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

© 2007 Processing.org