typeset 0.1.0
縦書き・横書きの日本語組版ライブラリ(JLReq 水準、ラスタ / PDF / SVG)
読み取り中…
検索中…
一致する文字列を見つけられません
typeset::ParagraphStyle 構造体

段落スタイル [詳解]

#include <typeset/style.hpp>

公開メンバ関数

Pt resolvedLinePitch (Pt fontSize) const
 実効の行送り
 

公開変数類

Align align = Align::Justify
 
Direction direction = Direction::Auto
 基底方向。RTL の段落では Start / End が入れ替わり、一字下げは行の終端側(右)に付く。 行の中の双方向テキスト(アラビア文字・ヘブライ文字の混在)は方向に関わらず UAX #9 で並べ替える
 
float firstLineIndent = 0.0f
 一字下げ(em 単位。日本語段落の既定は 1)
 
float hangingIndent = 0.0f
 ぶら下げインデント: 2 行目以降の字下げ(em)。途中からの字下げは Annotation::indent
 
std::u16string ellipsis
 行数上限(ParagraphLayouter::layout の maxLines)で切れたとき、最後の行の末尾に置く省略記号(空なら置かない)
 
std::vector< TabStoptabStops
 タブストップ(行頭からの位置、pt)。空なら tabWidth × em ごとの左揃えタブ。preserveSpaces のときは使わず空白に展開する
 
Pt linePitch = 0.0f
 行送り(pt)。0 なら size × lineHeight
 
float lineHeight = 1.7f
 
TextOrientation orientation = TextOrientation::Mixed
 縦組み中の文字の向き(既定: 和文正立・欧文横倒し)
 
SpacingOptions spacing
 
BreakOptions lineBreak
 
bool preserveSpaces = false
 欧文間隔を伸縮しない固定幅の箱にする(コードブロック等。行頭の空白も残る)
 
int tabWidth = 4
 preserveSpaces のとき、タブを何桁ごとのタブ位置で空白に展開するか
 
float rotation = 0.0f
 段落全体の回転(度。時計回りが正。行頭(emitParagraph の origin)を中心に回す)
 

詳解

段落スタイル

style.hpp258 行目に定義があります。

関数詳解

◆ resolvedLinePitch()

Pt typeset::ParagraphStyle::resolvedLinePitch ( Pt  fontSize) const
inline

実効の行送り

style.hpp295 行目に定義があります。

参照先 lineHeight, linePitch.

メンバ詳解

◆ align

Align typeset::ParagraphStyle::align = Align::Justify

style.hpp259 行目に定義があります。

◆ direction

Direction typeset::ParagraphStyle::direction = Direction::Auto

基底方向。RTL の段落では Start / End が入れ替わり、一字下げは行の終端側(右)に付く。 行の中の双方向テキスト(アラビア文字・ヘブライ文字の混在)は方向に関わらず UAX #9 で並べ替える

style.hpp263 行目に定義があります。

◆ firstLineIndent

float typeset::ParagraphStyle::firstLineIndent = 0.0f

一字下げ(em 単位。日本語段落の既定は 1)

style.hpp266 行目に定義があります。

◆ hangingIndent

float typeset::ParagraphStyle::hangingIndent = 0.0f

ぶら下げインデント: 2 行目以降の字下げ(em)。途中からの字下げは Annotation::indent

style.hpp268 行目に定義があります。

◆ ellipsis

std::u16string typeset::ParagraphStyle::ellipsis

行数上限(ParagraphLayouter::layout の maxLines)で切れたとき、最後の行の末尾に置く省略記号(空なら置かない)

style.hpp271 行目に定義があります。

◆ tabStops

std::vector<TabStop> typeset::ParagraphStyle::tabStops

タブストップ(行頭からの位置、pt)。空なら tabWidth × em ごとの左揃えタブ。preserveSpaces のときは使わず空白に展開する

style.hpp274 行目に定義があります。

◆ linePitch

Pt typeset::ParagraphStyle::linePitch = 0.0f

行送り(pt)。0 なら size × lineHeight

style.hpp277 行目に定義があります。

参照元 resolvedLinePitch().

◆ lineHeight

float typeset::ParagraphStyle::lineHeight = 1.7f

style.hpp278 行目に定義があります。

参照元 resolvedLinePitch().

◆ orientation

TextOrientation typeset::ParagraphStyle::orientation = TextOrientation::Mixed

縦組み中の文字の向き(既定: 和文正立・欧文横倒し)

style.hpp281 行目に定義があります。

◆ spacing

SpacingOptions typeset::ParagraphStyle::spacing

style.hpp283 行目に定義があります。

◆ lineBreak

BreakOptions typeset::ParagraphStyle::lineBreak

style.hpp284 行目に定義があります。

◆ preserveSpaces

bool typeset::ParagraphStyle::preserveSpaces = false

欧文間隔を伸縮しない固定幅の箱にする(コードブロック等。行頭の空白も残る)

style.hpp287 行目に定義があります。

◆ tabWidth

int typeset::ParagraphStyle::tabWidth = 4

preserveSpaces のとき、タブを何桁ごとのタブ位置で空白に展開するか

style.hpp289 行目に定義があります。

◆ rotation

float typeset::ParagraphStyle::rotation = 0.0f

段落全体の回転(度。時計回りが正。行頭(emitParagraph の origin)を中心に回す)

style.hpp292 行目に定義があります。


この構造体詳解は次のファイルから抽出されました: