ASCIIフォントクラス
[詳解]
#include <mgl_ascii_font.h>
|
| | AsciiFont (TextureKey textureKey, uint32_t characterWidth, uint32_t characterHeight, const Vector2 &sourceOffset=MGL::Vector2()) noexcept |
| | コンストラクタ(テクスチャキーで初期化)
|
| |
| | AsciiFont (const TextureWithBounds &textureBounds) noexcept |
| | コンストラクタ(領域付きテクスチャで初期化)
|
| |
| | AsciiFont (const File::PathView &imagePath, uint32_t characterWidth, uint32_t characterHeight, const Vector2 &sourceOffset=MGL::Vector2(), TextureLoaderKey loaderKey=TextureStorage::kDefaultLoaderKey) noexcept |
| | コンストラクタ(ファイルから画像を読み込み)
|
| |
| | AsciiFont (const void *imageData, size_t dataSize, uint32_t characterWidth, uint32_t characterHeight, const Vector2 &sourceOffset=MGL::Vector2(), TextureLoaderKey loaderKey=TextureStorage::kDefaultLoaderKey) noexcept |
| | コンストラクタ(メモリ上の画像データから読み込み)
|
| |
|
void | Initialize () noexcept |
| | 初期化処理
|
| |
| size_t | GetIndex (char32_t character, FontFaceType faceType) const noexcept override |
| | グリフのインデックスを取得
|
| |
| const FontGlyph * | GetGlyph (size_t index, FontFaceType faceType, const FontOption &option) const noexcept override |
| | グリフを取得
|
| |
| bool | HasFontFace (FontFaceType faceType) const noexcept override |
| | 指定したフェイスを保持しているかを取得
|
| |
| bool | IsValid () const noexcept override |
| | このフォントリソースが有効かどうかを取得
|
| |
| float | GetLineAdvance () const noexcept override |
| | 改行の送りサイズを取得
|
| |
| | IndexedFontResource (FontOrigin originType) noexcept |
| | コンストラクタ
|
| |
| virtual float | GetRubyOffset () const noexcept |
| | ルビのオフセット値を取得
|
| |
|
constexpr | FontResource (FontOrigin originType) noexcept |
| | コンストラクタ
|
| |
| constexpr const Text::IndexConverter & | GetIndexConverter () const noexcept |
| | インデックス文字列のコンバータを取得
|
| |
| constexpr bool | IsEnabled (FontFeature feature) const noexcept |
| | フォント機能の有効状態を取得
|
| |
| constexpr FontOrigin | GetOriginType () const noexcept |
| | フォントの原点タイプを取得
|
| |
◆ AsciiFont() [1/4]
| MGL::Render::AsciiFont::AsciiFont |
( |
TextureKey | textureKey, |
|
|
uint32_t | characterWidth, |
|
|
uint32_t | characterHeight, |
|
|
const Vector2 & | sourceOffset = MGL::Vector2() ) |
|
noexcept |
コンストラクタ(テクスチャキーで初期化)
- 引数
-
| [in] | textureKey | テクスチャキー |
| [in] | characterWidth | 文字の幅 |
| [in] | characterHeight | 文字の高さ |
| [in] | sourceOffset | テクスチャの参照元座標のオフセット |
◆ AsciiFont() [2/4]
コンストラクタ(領域付きテクスチャで初期化)
- 引数
-
| [in] | textureBounds | 領域付きテクスチャ |
◆ AsciiFont() [3/4]
コンストラクタ(ファイルから画像を読み込み)
- 引数
-
| [in] | imagePath | 画像ファイルのパス |
| [in] | characterWidth | 文字の幅 |
| [in] | characterHeight | 文字の高さ |
| [in] | sourceOffset | テクスチャの参照元座標のオフセット |
| [in] | loaderKey | テクスチャローダーのキー |
◆ AsciiFont() [4/4]
コンストラクタ(メモリ上の画像データから読み込み)
- 引数
-
| [in] | imageData | 画像データのアドレス |
| [in] | dataSize | 画像データのサイズ |
| [in] | characterWidth | 文字の幅 |
| [in] | characterHeight | 文字の高さ |
| [in] | sourceOffset | テクスチャの参照元座標のオフセット |
| [in] | loaderKey | テクスチャローダーのキー |
◆ GetGlyph()
|
|
nodiscardoverridevirtualnoexcept |
◆ GetIndex()
| size_t MGL::Render::AsciiFont::GetIndex |
( |
char32_t | character, |
|
|
FontFaceType | faceType ) const |
|
nodiscardoverridevirtualnoexcept |
◆ GetLineAdvance()
| float MGL::Render::AsciiFont::GetLineAdvance |
( |
| ) |
const |
|
inlinenodiscardoverridevirtualnoexcept |
◆ HasFontFace()
| bool MGL::Render::AsciiFont::HasFontFace |
( |
FontFaceType | faceType | ) |
const |
|
inlinenodiscardoverridevirtualnoexcept |
◆ IsValid()
| bool MGL::Render::AsciiFont::IsValid |
( |
| ) |
const |
|
inlinenodiscardoverridevirtualnoexcept |
このクラス詳解は次のファイルから抽出されました: