|
typeset 0.1.0
縦書き・横書きの日本語組版ライブラリ(JLReq 水準、ラスタ / PDF / SVG)
|
シェイピング結果のクラスタ(組版の最小単位) [詳解]
#include <typeset/inl/shaped.hpp>
公開変数類 | |
| uint32_t | glyphStart = 0 |
| uint32_t | glyphCount = 0 |
| size_t | charStart = 0 |
| size_t | charEnd = 0 |
| Pt | origin = 0.0f |
| ベタ組みでの inline 位置 | |
| Pt | advance = 0.0f |
| シェイパーが返した送り | |
| text::CharClass | charClass = text::CharClass::Unknown |
| bool | upright = true |
| 正立か横倒しか(横組みでは常に true) | |
| uint32_t | styleIndex = 0 |
| bool | object = false |
| 行内画像などの箱(ボディ幅はシェイパーの送りのまま) | |
| uint8_t | level = 0 |
| UAX #9 の埋め込みレベル(奇数が RTL)。行を確定したあとの並べ替えに使う | |
シェイピング結果のクラスタ(組版の最小単位)
HarfBuzz のクラスタ 1 つに対応する。組版層はグリフではなくこの単位で扱い、 行を確定したあとで「クラスタの新しい位置 − origin」をグリフの inline_ に足す。
shaped.hpp の 66 行目に定義があります。
| uint32_t typeset::inl::ShapedCluster::glyphStart = 0 |
shaped.hpp の 67 行目に定義があります。
| uint32_t typeset::inl::ShapedCluster::glyphCount = 0 |
shaped.hpp の 68 行目に定義があります。
| size_t typeset::inl::ShapedCluster::charStart = 0 |
shaped.hpp の 69 行目に定義があります。
| size_t typeset::inl::ShapedCluster::charEnd = 0 |
shaped.hpp の 70 行目に定義があります。
| Pt typeset::inl::ShapedCluster::origin = 0.0f |
ベタ組みでの inline 位置
shaped.hpp の 71 行目に定義があります。
| Pt typeset::inl::ShapedCluster::advance = 0.0f |
シェイパーが返した送り
shaped.hpp の 72 行目に定義があります。
| text::CharClass typeset::inl::ShapedCluster::charClass = text::CharClass::Unknown |
shaped.hpp の 73 行目に定義があります。
| bool typeset::inl::ShapedCluster::upright = true |
正立か横倒しか(横組みでは常に true)
shaped.hpp の 74 行目に定義があります。
| uint32_t typeset::inl::ShapedCluster::styleIndex = 0 |
shaped.hpp の 75 行目に定義があります。
| bool typeset::inl::ShapedCluster::object = false |
行内画像などの箱(ボディ幅はシェイパーの送りのまま)
shaped.hpp の 76 行目に定義があります。
| uint8_t typeset::inl::ShapedCluster::level = 0 |
UAX #9 の埋め込みレベル(奇数が RTL)。行を確定したあとの並べ替えに使う
shaped.hpp の 77 行目に定義があります。