|
typeset 0.1.0
縦書き・横書きの日本語組版ライブラリ(JLReq 水準、ラスタ / PDF / SVG)
|
フォントの宣言(開かずに登録するためのメタデータ) [詳解]
#include <typeset/font/font_set.hpp>
公開変数類 | |
| std::string | key |
| 一意なキー(TextStyle の family に書く名前) | |
| std::string | path |
| ファイル(初回使用時に開く) | |
| int | faceIndex = 0 |
| std::vector< std::string > | family |
| 別名(同じ family の別ウェイトは同じ名前を書く) | |
| int | weight = 0 |
| 100〜900。0 でフォントから | |
| std::optional< bool > | italic |
| nullopt でフォントから | |
| std::vector< std::string > | languages |
| BCP47。この言語のテキストで先に試される | |
| std::vector< glyphware::CodepointRange > | ranges |
| カバレッジ(空なら開いて cmap を見る) | |
フォントの宣言(開かずに登録するためのメタデータ)
family / weight / italic / languages / ranges は開かなくても分かる情報。開いたあとは name テーブルの family 名も 引けるようになる。weight = 0 と italic = nullopt は「開いたときにフォントから取る」(開くまでは 400 / 非斜体)
font_set.hpp の 39 行目に定義があります。
| std::string typeset::font::FontDeclaration::key |
一意なキー(TextStyle の family に書く名前)
font_set.hpp の 40 行目に定義があります。
| std::string typeset::font::FontDeclaration::path |
ファイル(初回使用時に開く)
font_set.hpp の 41 行目に定義があります。
| int typeset::font::FontDeclaration::faceIndex = 0 |
font_set.hpp の 42 行目に定義があります。
| std::vector<std::string> typeset::font::FontDeclaration::family |
別名(同じ family の別ウェイトは同じ名前を書く)
font_set.hpp の 43 行目に定義があります。
| int typeset::font::FontDeclaration::weight = 0 |
100〜900。0 でフォントから
font_set.hpp の 44 行目に定義があります。
| std::optional<bool> typeset::font::FontDeclaration::italic |
nullopt でフォントから
font_set.hpp の 45 行目に定義があります。
| std::vector<std::string> typeset::font::FontDeclaration::languages |
BCP47。この言語のテキストで先に試される
font_set.hpp の 46 行目に定義があります。
| std::vector<glyphware::CodepointRange> typeset::font::FontDeclaration::ranges |
カバレッジ(空なら開いて cmap を見る)
font_set.hpp の 47 行目に定義があります。