typeset 0.1.0
縦書き・横書きの日本語組版ライブラリ(JLReq 水準、ラスタ / PDF / SVG)
読み取り中…
検索中…
一致する文字列を見つけられません
typeset::font::FontDeclaration 構造体

フォントの宣言(開かずに登録するためのメタデータ) [詳解]

#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.hpp39 行目に定義があります。

メンバ詳解

◆ key

std::string typeset::font::FontDeclaration::key

一意なキー(TextStyle の family に書く名前)

font_set.hpp40 行目に定義があります。

◆ path

std::string typeset::font::FontDeclaration::path

ファイル(初回使用時に開く)

font_set.hpp41 行目に定義があります。

◆ faceIndex

int typeset::font::FontDeclaration::faceIndex = 0

font_set.hpp42 行目に定義があります。

◆ family

std::vector<std::string> typeset::font::FontDeclaration::family

別名(同じ family の別ウェイトは同じ名前を書く)

font_set.hpp43 行目に定義があります。

◆ weight

int typeset::font::FontDeclaration::weight = 0

100〜900。0 でフォントから

font_set.hpp44 行目に定義があります。

◆ italic

std::optional<bool> typeset::font::FontDeclaration::italic

nullopt でフォントから

font_set.hpp45 行目に定義があります。

◆ languages

std::vector<std::string> typeset::font::FontDeclaration::languages

BCP47。この言語のテキストで先に試される

font_set.hpp46 行目に定義があります。

◆ ranges

std::vector<glyphware::CodepointRange> typeset::font::FontDeclaration::ranges

カバレッジ(空なら開いて cmap を見る)

font_set.hpp47 行目に定義があります。


この構造体詳解は次のファイルから抽出されました: