段落スタイル
[詳解]
#include <typeset/style.hpp>
段落スタイル
style.hpp の 258 行目に定義があります。
◆ resolvedLinePitch()
| Pt typeset::ParagraphStyle::resolvedLinePitch |
( |
Pt |
fontSize | ) |
const |
|
inline |
◆ align
◆ direction
基底方向。RTL の段落では Start / End が入れ替わり、一字下げは行の終端側(右)に付く。 行の中の双方向テキスト(アラビア文字・ヘブライ文字の混在)は方向に関わらず UAX #9 で並べ替える
style.hpp の 263 行目に定義があります。
◆ firstLineIndent
| float typeset::ParagraphStyle::firstLineIndent = 0.0f |
◆ hangingIndent
| float typeset::ParagraphStyle::hangingIndent = 0.0f |
ぶら下げインデント: 2 行目以降の字下げ(em)。途中からの字下げは Annotation::indent
style.hpp の 268 行目に定義があります。
◆ ellipsis
| std::u16string typeset::ParagraphStyle::ellipsis |
行数上限(ParagraphLayouter::layout の maxLines)で切れたとき、最後の行の末尾に置く省略記号(空なら置かない)
style.hpp の 271 行目に定義があります。
◆ tabStops
| std::vector<TabStop> typeset::ParagraphStyle::tabStops |
タブストップ(行頭からの位置、pt)。空なら tabWidth × em ごとの左揃えタブ。preserveSpaces のときは使わず空白に展開する
style.hpp の 274 行目に定義があります。
◆ linePitch
| Pt typeset::ParagraphStyle::linePitch = 0.0f |
◆ lineHeight
| float typeset::ParagraphStyle::lineHeight = 1.7f |
◆ orientation
◆ spacing
◆ lineBreak
◆ preserveSpaces
| bool typeset::ParagraphStyle::preserveSpaces = false |
欧文間隔を伸縮しない固定幅の箱にする(コードブロック等。行頭の空白も残る)
style.hpp の 287 行目に定義があります。
◆ tabWidth
| int typeset::ParagraphStyle::tabWidth = 4 |
preserveSpaces のとき、タブを何桁ごとのタブ位置で空白に展開するか
style.hpp の 289 行目に定義があります。
◆ rotation
| float typeset::ParagraphStyle::rotation = 0.0f |
段落全体の回転(度。時計回りが正。行頭(emitParagraph の origin)を中心に回す)
style.hpp の 292 行目に定義があります。
この構造体詳解は次のファイルから抽出されました: