typeset
0.1.0
縦書き・横書きの日本語組版ライブラリ(JLReq 水準、ラスタ / PDF / SVG)
読み取り中…
検索中…
一致する文字列を見つけられません
spacing_table.hpp
[詳解]
1
#ifndef TYPESET_TEXT_SPACING_TABLE_HPP
2
#define TYPESET_TEXT_SPACING_TABLE_HPP
3
4
#include "
typeset/text/char_class.hpp
"
5
20
namespace
typeset::text
{
21
23
struct
GlueSpec
{
24
float
natural
= 0.0f;
25
float
stretch
= 0.0f;
26
float
shrink
= 0.0f;
27
28
bool
isZero
()
const
{
return
natural
== 0.0f &&
stretch
== 0.0f &&
shrink
== 0.0f; }
29
};
30
32
GlueSpec
getSpacing
(
CharClass
before,
CharClass
after);
33
40
float
getBodyWidth
(
CharClass
c);
41
42
}
// namespace typeset::text
43
44
#endif
// TYPESET_TEXT_SPACING_TABLE_HPP
char_class.hpp
typeset::text
text/char_class — JLReq の文字クラス
Definition
style.hpp:9
typeset::text::getSpacing
GlueSpec getSpacing(CharClass before, CharClass after)
隣接する 2 文字の間に入るアキ量
typeset::text::CharClass
CharClass
文字クラス(コメントの cl-NN は JLReq の文字クラス番号)
Definition
char_class.hpp:19
typeset::text::getBodyWidth
float getBodyWidth(CharClass c)
仮想ボディ幅(em 単位)
typeset::text::GlueSpec
伸縮するアキ(em 単位)
Definition
spacing_table.hpp:23
typeset::text::GlueSpec::stretch
float stretch
Definition
spacing_table.hpp:25
typeset::text::GlueSpec::isZero
bool isZero() const
Definition
spacing_table.hpp:28
typeset::text::GlueSpec::natural
float natural
Definition
spacing_table.hpp:24
typeset::text::GlueSpec::shrink
float shrink
Definition
spacing_table.hpp:26
typeset
text
spacing_table.hpp
構築:
1.9.8