#include <typeset/style.hpp>
style.hpp の 216 行目に定義があります。
◆ strategy
◆ wrap
◆ hyphenation
欧文のハイフネーション辞書(言語ごとのパターン。TextStyle::language で引く)。 nullptr なら単語内では切らない(テキスト中のソフトハイフン U+00AD は辞書が無くても常に切れる)。 **所有しない**ので、組版の間は生かしておくこと
style.hpp の 225 行目に定義があります。
◆ hyphenPenalty
| float typeset::BreakOptions::hyphenPenalty = 50.0f |
単語内で切るときのペナルティ(Knuth–Plass の demerits に効く)
style.hpp の 227 行目に定義があります。
◆ hyphenMinLeft
| int typeset::BreakOptions::hyphenMinLeft = 2 |
◆ hyphenMinRight
| int typeset::BreakOptions::hyphenMinRight = 3 |
◆ justify
| bool typeset::BreakOptions::justify = true |
行末を揃える(グルーを伸縮させる)。false なら自然幅のまま
style.hpp の 232 行目に定義があります。
◆ tolerance
| float typeset::BreakOptions::tolerance = 3.0f |
◆ linePenalty
| float typeset::BreakOptions::linePenalty = 10.0f |
Knuth–Plass の行あたりのペナルティ(行数を増やしにくくする)
style.hpp の 236 行目に定義があります。
この構造体詳解は次のファイルから抽出されました: