Next: , Previous: , Up: displayプロパティ   [Contents][Index]


41.16.2 スペースの指定

指定された幅および/または高さのスペースを表示するためには(space . props)という形式のディスプレイ仕様を使用します。このプロパティを1つ以上の連続する文字にputすることができます。これらすべての文字のかわりに指定された高さと幅のスペースが表示されます。以下はスペースのウェイトを指定するためにprops内で使用できるプロパティです:

:width width

widthが数字なら、それはスペースの幅が通常の文字幅のwidth倍であるべきかを指定する。widthピクセル幅(pixel width)仕様でも可(スペースにたいするピクセル指定を参照)。

:relative-width factor

幅の広さは同じdisplayプロパティをもつ連続する文字のグループ内の最初の文字から計算される必要があることを指定する。スペースの幅はその文字のピクセル幅にfactorを乗じた幅である(テキストモード端末では文字の“ピクセル幅”は通常は1だがTAB文字や2倍の幅をもつCJK文字では1以上になり得る)。

:align-to hpos

Specifies that the space should be wide enough to reach the column hpos. If hpos is a number, it is a column number, and is measured in units of the canonical character width (see フレームのフォント). hpos can also be a pixel width specification (see スペースにたいするピクセル指定). When the current line is wider than the window, and is either displayed by one or more continuation lines, or is truncated and possibly scrolled horizontally (see 水平スクロール), hpos is measured from the beginning of the logical line, not from the visual beginning of the screen line. This way, alignment produced by :align-to is consistent with functions that count columns, such as current-column and move-to-column (see 列を数える).

上記プロパティのいずれか1つだけを使用するべきです。以下のプロパティでスペースの高さも指定できます:

:height height

スペースの高さを指定する。heightが数字ならスペースの高さが通常の文字高さのheight倍であるべきことを指定する。heightピクセル高さ仕様(pixel height)でも可(スペースにたいするピクセル指定を参照)。

:relative-height factor

このディスプレイ仕様をもつテキストの通常の高さにfactorを乗じることによりスペースの高さを指定する。

:ascent ascent

ascentの値が非負の100以下の数字ならスペースの高さのascentパーセントをスペースのアセント(ascent: 上方)、すなわちベースラインより上の部分とみなす。ピクセルアセント(pixel ascent)仕様によりアセントをピクセル単位で指定することも可(スペースにたいするピクセル指定を参照)。

:height:relative-heightを両方同時に使用しないでください。

:width:align-toプロパティは非グラフィック端末でサポートされますが、このセクションのその他のスペースプロパティはサポートされません。

スペースプロパティは双方向テキスト表示の並べ替えのためのパラグラフ区切りとして扱われます。詳細は双方向テキストの表示を参照してください。

This page has generated for branch:master, commit:762705fb24fd90db318f2e51c1e762452d26f7e2 to check Japanese translation.