|
typeset 0.1.0
縦書き・横書きの日本語組版ライブラリ(JLReq 水準、ラスタ / PDF / SVG)
|
font — フォント層(glyphware の薄い包み) [詳解]
クラス | |
| struct | DecorationMetrics |
| 下線・打消し線のメトリクス(pt、size で換算)。位置はベースラインからの距離で下が正 (横組みの block 軸と同じ向き。打消し線は通常負) [詳解] | |
| struct | FontDeclaration |
| フォントの宣言(開かずに登録するためのメタデータ) [詳解] | |
| class | FontSet |
関数 | |
| uint32_t | makeTag (const std::string &s) |
| OpenType タグ("wght")を glyphware / HarfBuzz の 32bit タグに | |
| int | effectiveWeight (const glyphware::Face &face) |
| face の実効ウェイト。バリアブルフォントのインスタンスなら wght 軸の値、無ければ OS/2 の値 | |
| float | unitsPerEm (const glyphware::Face &face) |
| face の unitsPerEm(取れなければ 1000) | |
| void | faceAscentDescent (const glyphware::Face &face, Pt size, Pt &ascent, Pt &descent) |
| face の ascender / descender(正・正、pt)を size で返す | |
| DecorationMetrics | decorationMetrics (FontSet &fonts, const glyphware::Face &face, Pt size) |
| post / OS/2 から取る(hb_ot_metrics)。無ければ下線 0.1em / 太さ 0.05em、打消し線 -0.3em | |
font — フォント層(glyphware の薄い包み)
|
inline |
OpenType タグ("wght")を glyphware / HarfBuzz の 32bit タグに
font_set.hpp の 161 行目に定義があります。
| int typeset::font::effectiveWeight | ( | const glyphware::Face & | face | ) |
face の実効ウェイト。バリアブルフォントのインスタンスなら wght 軸の値、無ければ OS/2 の値
| float typeset::font::unitsPerEm | ( | const glyphware::Face & | face | ) |
face の unitsPerEm(取れなければ 1000)
| void typeset::font::faceAscentDescent | ( | const glyphware::Face & | face, |
| Pt | size, | ||
| Pt & | ascent, | ||
| Pt & | descent | ||
| ) |
face の ascender / descender(正・正、pt)を size で返す
| DecorationMetrics typeset::font::decorationMetrics | ( | FontSet & | fonts, |
| const glyphware::Face & | face, | ||
| Pt | size | ||
| ) |
post / OS/2 から取る(hb_ot_metrics)。無ければ下線 0.1em / 太さ 0.05em、打消し線 -0.3em