![]() |
OpenSiv3D
v0.6.5
C++20 framework for creative coding
|
#include <FontAssetData.hpp>
Inherits s3d::IAsset.
Public Member Functions | |
| SIV3D_NODISCARD_CXX20 | FontAssetData () |
| SIV3D_NODISCARD_CXX20 | FontAssetData (FontMethod _fontMethod, int32 _fontSize, FilePathView _path, size_t _faceIndex, FontStyle _style, const Array< AssetTag > &tags={}) |
| SIV3D_NODISCARD_CXX20 | FontAssetData (FontMethod _fontMethod, int32 _fontSize, Typeface _typeface, FontStyle _style, const Array< AssetTag > &tags={}) |
| bool | load (const String &hint) override |
| void | loadAsync (const String &hint) override |
| void | wait () override |
| void | release () override |
Public Member Functions inherited from s3d::IAsset | |
| IAsset () | |
| IAsset (const Array< String > &tags) | |
| virtual | ~IAsset () |
| AssetState | getState () const |
| const Array< AssetTag > & | getTags () const |
| bool | isAsyncLoading () const |
| bool | isFinished () const |
Static Public Member Functions | |
| static bool | DefaultLoad (FontAssetData &asset, const String &hint) |
| static void | DefaultRelease (FontAssetData &asset) |
Public Attributes | |
| FontMethod | fontMethod = FontMethod::Bitmap |
| int32 | fontSize = 0 |
| FilePath | path |
| size_t | faceIndex = 0 |
| Typeface | typeface = Typeface::Regular |
| FontStyle | style = FontStyle::Default |
| Font | font |
| std::function< bool(FontAssetData &, const String &)> | onLoad = DefaultLoad |
| std::function< void(FontAssetData &)> | onRelease = DefaultRelease |
Additional Inherited Members | |
Protected Member Functions inherited from s3d::IAsset | |
| bool | isUninitialized () const |
| bool | isLoaded () const |
| void | setState (AssetState state) |
| SIV3D_NODISCARD_CXX20 s3d::FontAssetData::FontAssetData | ( | ) |
| SIV3D_NODISCARD_CXX20 s3d::FontAssetData::FontAssetData | ( | FontMethod | _fontMethod, |
| int32 | _fontSize, | ||
| FilePathView | _path, | ||
| size_t | _faceIndex, | ||
| FontStyle | _style, | ||
| const Array< AssetTag > & | tags = {} |
||
| ) |
| SIV3D_NODISCARD_CXX20 s3d::FontAssetData::FontAssetData | ( | FontMethod | _fontMethod, |
| int32 | _fontSize, | ||
| Typeface | _typeface, | ||
| FontStyle | _style, | ||
| const Array< AssetTag > & | tags = {} |
||
| ) |
|
static |
|
static |
|
overridevirtual |
Implements s3d::IAsset.
|
overridevirtual |
Implements s3d::IAsset.
|
overridevirtual |
Implements s3d::IAsset.
|
overridevirtual |
Implements s3d::IAsset.
| size_t s3d::FontAssetData::faceIndex = 0 |
| Font s3d::FontAssetData::font |
| FontMethod s3d::FontAssetData::fontMethod = FontMethod::Bitmap |
| int32 s3d::FontAssetData::fontSize = 0 |
| std::function<bool(FontAssetData&, const String&)> s3d::FontAssetData::onLoad = DefaultLoad |
| std::function<void(FontAssetData&)> s3d::FontAssetData::onRelease = DefaultRelease |
| FilePath s3d::FontAssetData::path |
| FontStyle s3d::FontAssetData::style = FontStyle::Default |
| Typeface s3d::FontAssetData::typeface = Typeface::Regular |