フォントリソースクラス
[詳解]
#include <mgl_font_resource.h>
|
|
constexpr | FontResource (FontOrigin originType) noexcept |
| | コンストラクタ
|
| |
| virtual bool | Print (FontWorkdata &workdata, const FontOption &option, const char *text, const Text::FormatArgs &formatArgs) noexcept |
| | 文字の表示
|
| |
| virtual bool | Print (FontWorkdata &workdata, const FontOption &option, const Text::IndexedCharacter *indexedString, const Text::FormatArgs &formatArgs) noexcept |
| | インデックス化した文字を表示
|
| |
| virtual Text::IndexedCharacter | ToIndexedCharacter (char32_t character, FontFaceType faceType) const noexcept |
| | 文字をインデックス文字に変換
|
| |
| virtual char32_t | ToUTF32 (Text::IndexedCharacter indexedCharacter, FontFaceType faceType) const noexcept |
| | インデックス文字をUTF-32の文字に変換
|
| |
| virtual const FontGlyph * | GetGlyph (char32_t character, FontFaceType faceType, const FontOption &option) const noexcept |
| | グリフの取得
|
| |
| virtual const FontGlyph * | GetGlyph (Text::IndexedCharacter character, FontFaceType faceType, const FontOption &option) const noexcept |
| | グリフの取得
|
| |
| virtual bool | HasFontFace (FontFaceType faceType) const noexcept=0 |
| | 指定したフェイスを保持しているかを取得
|
| |
| virtual bool | IsValid () const noexcept=0 |
| | このフォントリソースが有効かどうかを取得
|
| |
| constexpr const Text::IndexConverter & | GetIndexConverter () const noexcept |
| | インデックス文字列のコンバータを取得
|
| |
| constexpr bool | IsEnabled (FontFeature feature) const noexcept |
| | フォント機能の有効状態を取得
|
| |
| constexpr FontOrigin | GetOriginType () const noexcept |
| | フォントの原点タイプを取得
|
| |
◆ GetGlyph() [1/2]
|
|
inlinenodiscardvirtualnoexcept |
グリフの取得
- 引数
-
| [in] | character | 取得するグリフの文字(UTF-32) |
| [in] | faceType | フェイスタイプ |
| [in] | option | 描画オプション |
- 戻り値
- 対応するグリフ情報.見つからない場合はnullptr
◆ GetGlyph() [2/2]
|
|
inlinenodiscardvirtualnoexcept |
グリフの取得
- 引数
-
| [in] | character | 取得するグリフの文字(インデックス文字) |
| [in] | faceType | フェイスタイプ |
| [in] | option | 描画オプション |
- 戻り値
- 対応するグリフ情報.見つからない場合はnullptr
◆ GetIndexConverter()
|
|
inlinenodiscardconstexprnoexcept |
インデックス文字列のコンバータを取得
- 戻り値
- インデックス文字列のコンバータ
◆ GetOriginType()
| FontOrigin MGL::Render::FontResource::GetOriginType |
( |
| ) |
const |
|
inlinenodiscardconstexprnoexcept |
◆ HasFontFace()
| virtual bool MGL::Render::FontResource::HasFontFace |
( |
FontFaceType | faceType | ) |
const |
|
nodiscardpure virtualnoexcept |
◆ IsEnabled()
| bool MGL::Render::FontResource::IsEnabled |
( |
FontFeature | feature | ) |
const |
|
inlinenodiscardconstexprnoexcept |
◆ IsValid()
| virtual bool MGL::Render::FontResource::IsValid |
( |
| ) |
const |
|
nodiscardpure virtualnoexcept |
◆ Print() [1/2]
文字の表示
- 引数
-
| [in,out] | workdata | フォント描画のワークデータ |
| [in] | option | 表示オプション |
| [in] | text | 表示する文字列 |
| [in] | formatArgs | フォーマット引数 |
- 戻り値
-
| true | 文字列を最後まで表示した |
| false | 文字列の表示を途中で中断した |
◆ Print() [2/2]
インデックス化した文字を表示
- 引数
-
| [in,out] | workdata | フォント描画のワークデータ |
| [in] | option | 表示オプション |
| [in] | indexedString | 表示する文字列 |
| [in] | formatArgs | フォーマット引数 |
- 戻り値
-
| true | 文字列を最後まで表示した |
| false | 文字列の表示を途中で中断した |
◆ SetEnabled()
| void MGL::Render::FontResource::SetEnabled |
( |
FontFeature | feature, |
|
|
bool | isEnabled ) |
|
inlineconstexprprotectednoexcept |
フォント機能の有効状態を設定
- 引数
-
| [in] | feature | フォントの機能 |
| [in] | isEnabled | 設定する有効フラグ |
◆ ToIndexedCharacter()
|
|
inlinenodiscardvirtualnoexcept |
文字をインデックス文字に変換
- 引数
-
| [in] | character | 変換元の文字(UTF-32) |
| [in] | faceType | フェイスタイプ |
- 戻り値
- インデックス文字.失敗時はMGL::Text::kIndexedCharacterInvalid
◆ ToUTF32()
|
|
inlinenodiscardvirtualnoexcept |
インデックス文字をUTF-32の文字に変換
- 引数
-
| [in] | indexedCharacter | インデックス文字 |
| [in] | faceType | フェイスタイプ |
- 戻り値
- インデックスに対応したUTF-32エンコードの文字.失敗時はNULL文字(0x00)
このクラス詳解は次のファイルから抽出されました: