typeset 0.1.0
縦書き・横書きの日本語組版ライブラリ(JLReq 水準、ラスタ / PDF / SVG)
読み取り中…
検索中…
一致する文字列を見つけられません
shaper.hpp
[詳解]
1#ifndef TYPESET_INL_SHAPER_HPP
2#define TYPESET_INL_SHAPER_HPP
3
4#include <string>
5#include <vector>
6
10
24namespace typeset::inl {
25
31 const std::vector<TextStyle>* styles = nullptr;
33 const std::vector<std::shared_ptr<const dl::Image>>* images = nullptr;
34 const std::vector<Size>* imageSizes = nullptr;
36 const std::vector<std::shared_ptr<const obj::ObjectResult>>* objects = nullptr;
38 const std::vector<bool>* placeholders = nullptr;
41};
42
48ShapedText shapeText(const std::u16string& text, const std::vector<StyleRun>& runs,
49 const ShapeContext& ctx);
50
52ShapedText shapeText(const std::u16string& text, const TextStyle& style,
53 font::FontSet& fonts, WritingMode wm,
55
60Pt baselineOffset(const glyphware::Face& face, Pt size, WritingMode wm);
61
62} // namespace typeset::inl
63
64#endif // TYPESET_INL_SHAPER_HPP
inl/annotation — 行内に組み込む注記
ShapedText shapeText(const std::u16string &text, const std::vector< StyleRun > &runs, const ShapeContext &ctx)
シェイピング実行
Pt baselineOffset(const glyphware::Face &face, Pt size, WritingMode wm)
横組みのベースラインのブロック位置(中心線から下向き正)/ 縦組み横倒しランのベースラインのブロック位置(中心線から右向き正)
Direction
段落の基底方向(UAX #9)。Auto は最初の強い文字で決める(和文・欧文は LTR)
Definition style.hpp:253
float Pt
Definition geom.hpp:17
TextOrientation
縦組み中の文字の正立/横倒し(CSS text-orientation 相当)
@ Mixed
和文は正立、欧文は横倒し(既定)
@ HorizontalTb
横組み
文字スタイル
Definition style.hpp:86
const std::vector< TextStyle > * styles
styleIndex → TextStyle
Definition shaper.hpp:31
const std::vector< bool > * placeholders
styleIndex → 行内プレースホルダか(大きさは imageSizes)
Definition shaper.hpp:38
Direction direction
段落の基底方向(UAX #9 の P2/P3 を Auto で)
Definition shaper.hpp:40
TextOrientation orientation
Definition shaper.hpp:29
const std::vector< std::shared_ptr< const dl::Image > > * images
styleIndex → 行内画像(無い run は nullptr)
Definition shaper.hpp:33
const std::vector< std::shared_ptr< const obj::ObjectResult > > * objects
styleIndex → 行内オブジェクト(無い run は nullptr)
Definition shaper.hpp:36
font::FontSet & fonts
Definition shaper.hpp:27
const std::vector< Size > * imageSizes
Definition shaper.hpp:34