Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
FontRepository Class Reference
Inheritance diagram for FontRepository:

Public Types

using NonNullFontPtr = ::gsl::not_null<::std::shared_ptr<::Font>>

Public Member Functions

virtual void onAppSuspended ()
virtual void onDeviceLost ()
MCAPI FontRepository (::Bedrock::NotNullNonOwnerPtr<::ResourceLoadManager > manager, bool isOnLowMemoryDevice)
MCAPI void _queueBitmapFont (::std::string const &alias, ::Core::Path const &asciiName, ::Core::Path const &unicodeName, ::std::weak_ptr<::mce::TextureGroup > textureGroupWeakPtr, uchar asciiSheetCount)
MCAPI void _queueMsdfFont (::std::string const &alias, ::Core::Path const &fontPagePrefix, ::std::weak_ptr<::mce::TextureGroup > textureGroupWeakPtr)
MCAPI void _setDefaultFont (::std::string const &fontName, uint64 const fontId, ::std::shared_ptr<::Font > font)
MCAPI void _setFontIfOverride (uint64 const fontId, ::std::shared_ptr<::Font > font)
MCAPI void _setMinecraftSmoothFontStyle (float guiScale, ::std::string const &languageCode, bool supportsCjkSmoothFont)
MCAPI uint64 addPreloadedFont (::std::string const &fontName, ::gsl::not_null<::std::shared_ptr<::Font > > font)
MCAPI::FontHandle getFontFromFontType (::std::string const &fontType) const
MCAPI::FontHandle getFontHandle (uint64 const fontId)
MCAPI uint64 getFontIdentifier (::std::string const &fontName)
MCAPI ::std::vector<::ResourceLocation > getReloadFontTextures () const
MCAPI bool haveDefaultFontsLoaded ()
MCAPI void initDefaultFontHandles ()
MCAPI bool isRepositoryInitialized ()
MCAPI void loadDefaultFonts (::std::shared_ptr<::mce::TextureGroup > textureGroup)
MCAPI void onLanguageChanged (::std::string const &languageCode)
MCAPI void parseAndLoadMetadataFonts (::std::shared_ptr<::mce::TextureGroup > textureGroup)
MCAPI void reloadFontTextures (bool blockingLoad)
MCAPI void setMinecraftUIFontStyle (::std::string const &languageCode)
MCAPI void setUseFontOverrides (bool useOverrides)
MCAPI void * $ctor (::Bedrock::NotNullNonOwnerPtr<::ResourceLoadManager > manager, bool isOnLowMemoryDevice)
MCAPI void $onAppSuspended ()
MCAPI void $onDeviceLost ()
virtual void onAppPaused ()
virtual void onAppUnpaused ()
virtual void onAppPreSuspended ()
virtual void onAppResumed ()
virtual void onAppFocusLost ()
virtual void onAppFocusGained ()
virtual void onAppTerminated ()
virtual void onOperationModeChanged (::OperationMode const operationMode)
virtual void onPerformanceModeChanged (bool const boost)
virtual void onPushNotificationReceived (::PushNotificationMessage const &msg)
virtual void onRefreshRateChanged (::RefreshRate const refreshRate)
virtual void onResizeBegin ()
virtual void onResizeEnd ()
virtual void onAppSurfaceCreated ()
virtual void onAppSurfaceDestroyed ()
virtual void onClipboardCopy (::std::string const &clipString)
virtual void onClipboardPaste (::std::string const &clipString)
virtual void onLowMemory (::LowMemorySeverity)
MCAPI void initListener (float priority)
MCAPI void $dtor ()
MCAPI void $onAppPaused ()
MCAPI void $onAppUnpaused ()
MCAPI void $onAppPreSuspended ()
MCAPI void $onAppResumed ()
MCAPI void $onAppFocusLost ()
MCAPI void $onAppFocusGained ()
MCAPI void $onAppTerminated ()
MCAPI void $onOperationModeChanged (::OperationMode const operationMode)
MCAPI void $onPerformanceModeChanged (bool const boost)
MCAPI void $onPushNotificationReceived (::PushNotificationMessage const &msg)
MCAPI void $onRefreshRateChanged (::RefreshRate const refreshRate)
MCAPI void $onResizeBegin ()
MCAPI void $onResizeEnd ()
MCAPI void $onAppSurfaceCreated ()
MCAPI void $onAppSurfaceDestroyed ()
MCAPI void $onClipboardCopy (::std::string const &clipString)
MCAPI void $onClipboardPaste (::std::string const &clipString)
MCAPI void $onLowMemory (::LowMemorySeverity)
MCFOLD void $dtor ()

Static Public Member Functions

static MCAPI uint64 & INVALID_FONT ()
static MCAPI void ** $vftable ()
static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 1, 1, bool > mIsInitialized
::ll::TypedStorage< 8, 24, ::std::vector<::gsl::not_null<::std::shared_ptr<::Font > > > > mLoadedFonts
::ll::TypedStorage< 8, 64, ::std::unordered_map<::std::string, uint64 > > mFontNameToIdentifier
::ll::TypedStorage< 8, 8, uint64 > mDefaultFontId
::ll::TypedStorage< 8, 8, uint64 > mRuneFontId
::ll::TypedStorage< 8, 8, uint64 > mUnicodeFontId
::ll::TypedStorage< 8, 8, uint64 > mSmoothFontLatinFontId
::ll::TypedStorage< 8, 8, uint64 > mSmoothFontWithHangulFallbackFontId
::ll::TypedStorage< 8, 8, uint64 > mUIFontId
::ll::TypedStorage< 8, 8, uint64 > mSmoothSmallFontID
::ll::TypedStorage< 8, 80, ::FontHandle > mFontHandle
::ll::TypedStorage< 8, 80, ::FontHandle > mRuneFontHandle
::ll::TypedStorage< 8, 80, ::FontHandle > mUnicodeFontHandle
::ll::TypedStorage< 8, 80, ::FontHandle > mSmoothFontLatinHandle
::ll::TypedStorage< 8, 80, ::FontHandle > mUIFontHandle
::ll::TypedStorage< 8, 64, ::std::unordered_map< uint64, ::std::shared_ptr<::Font > > > mOriginalMinecraftFonts
::ll::TypedStorage< 8, 64, ::std::unordered_map< uint64, ::std::shared_ptr<::Font > > > mOverriddenFonts
::ll::TypedStorage< 8, 24, ::std::vector<::Bedrock::Threading::Async< void > > > mFontLoadingTaskTrackers
::ll::TypedStorage< 8, 16, ::std::shared_ptr<::mce::TextureGroup > > mFontTextureGroup
::ll::TypedStorage< 8, 32, ::std::string > mLanguageCode
::ll::TypedStorage< 8, 24, ::Bedrock::NotNullNonOwnerPtr<::ResourceLoadManager > > mResourceLoadManager
::ll::TypedStorage< 1, 1, bool > mIsOnLowMemoryDevice
::ll::TypedStorage< 1, 1, bool > mHasLoggedFontLoadFailure
::ll::TypedStorage< 1, 1, bool > mHasLoggedMissingSmoothFontWithHangulFallback
::ll::TypedStorage< 8, 16, ::Bedrock::PubSub::Subscription > mLowMemorySubscription
::ll::TypedStorage< 1, 1, bool > mListenerRegistered
::std::shared_ptr<::Bedrock::EnableNonOwnerReferences::ControlBlock > mControlBlock

Constructor & Destructor Documentation

◆ FontRepository()

MCAPI FontRepository::FontRepository ( ::Bedrock::NotNullNonOwnerPtr<::ResourceLoadManager > manager,
bool isOnLowMemoryDevice )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

Member Function Documentation

◆ onAppSuspended()

virtual void FontRepository::onAppSuspended ( )
virtual

Reimplemented from AppPlatformListener.

◆ onDeviceLost()

virtual void FontRepository::onDeviceLost ( )
virtual

Reimplemented from AppPlatformListener.

◆ _queueBitmapFont()

MCAPI void FontRepository::_queueBitmapFont ( ::std::string const & alias,
::Core::Path const & asciiName,
::Core::Path const & unicodeName,
::std::weak_ptr<::mce::TextureGroup > textureGroupWeakPtr,
uchar asciiSheetCount )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _queueMsdfFont()

MCAPI void FontRepository::_queueMsdfFont ( ::std::string const & alias,
::Core::Path const & fontPagePrefix,
::std::weak_ptr<::mce::TextureGroup > textureGroupWeakPtr )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _setDefaultFont()

MCAPI void FontRepository::_setDefaultFont ( ::std::string const & fontName,
uint64 const fontId,
::std::shared_ptr<::Font > font )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _setFontIfOverride()

MCAPI void FontRepository::_setFontIfOverride ( uint64 const fontId,
::std::shared_ptr<::Font > font )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _setMinecraftSmoothFontStyle()

MCAPI void FontRepository::_setMinecraftSmoothFontStyle ( float guiScale,
::std::string const & languageCode,
bool supportsCjkSmoothFont )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ addPreloadedFont()

MCAPI uint64 FontRepository::addPreloadedFont ( ::std::string const & fontName,
::gsl::not_null<::std::shared_ptr<::Font > > font )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getFontHandle()

MCAPI::FontHandle FontRepository::getFontHandle ( uint64 const fontId)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getFontIdentifier()

MCAPI uint64 FontRepository::getFontIdentifier ( ::std::string const & fontName)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getReloadFontTextures()

MCAPI ::std::vector<::ResourceLocation > FontRepository::getReloadFontTextures ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ haveDefaultFontsLoaded()

MCAPI bool FontRepository::haveDefaultFontsLoaded ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ initDefaultFontHandles()

MCAPI void FontRepository::initDefaultFontHandles ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ isRepositoryInitialized()

MCAPI bool FontRepository::isRepositoryInitialized ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ loadDefaultFonts()

MCAPI void FontRepository::loadDefaultFonts ( ::std::shared_ptr<::mce::TextureGroup > textureGroup)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ onLanguageChanged()

MCAPI void FontRepository::onLanguageChanged ( ::std::string const & languageCode)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ parseAndLoadMetadataFonts()

MCAPI void FontRepository::parseAndLoadMetadataFonts ( ::std::shared_ptr<::mce::TextureGroup > textureGroup)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ reloadFontTextures()

MCAPI void FontRepository::reloadFontTextures ( bool blockingLoad)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ setMinecraftUIFontStyle()

MCAPI void FontRepository::setMinecraftUIFontStyle ( ::std::string const & languageCode)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ setUseFontOverrides()

MCAPI void FontRepository::setUseFontOverrides ( bool useOverrides)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor()

MCAPI void * FontRepository::$ctor ( ::Bedrock::NotNullNonOwnerPtr<::ResourceLoadManager > manager,
bool isOnLowMemoryDevice )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onAppSuspended()

MCAPI void FontRepository::$onAppSuspended ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onDeviceLost()

MCAPI void FontRepository::$onDeviceLost ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ initListener()

MCAPI void AppPlatformListener::initListener ( float priority)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $dtor()

MCAPI void AppPlatformListener::$dtor ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onAppPaused()

MCAPI void AppPlatformListener::$onAppPaused ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onAppUnpaused()

MCAPI void AppPlatformListener::$onAppUnpaused ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onAppPreSuspended()

MCAPI void AppPlatformListener::$onAppPreSuspended ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onAppResumed()

MCAPI void AppPlatformListener::$onAppResumed ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onAppFocusLost()

MCAPI void AppPlatformListener::$onAppFocusLost ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onAppFocusGained()

MCAPI void AppPlatformListener::$onAppFocusGained ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onAppTerminated()

MCAPI void AppPlatformListener::$onAppTerminated ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onOperationModeChanged()

MCAPI void AppPlatformListener::$onOperationModeChanged ( ::OperationMode const operationMode)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onPerformanceModeChanged()

MCAPI void AppPlatformListener::$onPerformanceModeChanged ( bool const boost)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onPushNotificationReceived()

MCAPI void AppPlatformListener::$onPushNotificationReceived ( ::PushNotificationMessage const & msg)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onRefreshRateChanged()

MCAPI void AppPlatformListener::$onRefreshRateChanged ( ::RefreshRate const refreshRate)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onResizeBegin()

MCAPI void AppPlatformListener::$onResizeBegin ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onResizeEnd()

MCAPI void AppPlatformListener::$onResizeEnd ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onAppSurfaceCreated()

MCAPI void AppPlatformListener::$onAppSurfaceCreated ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onAppSurfaceDestroyed()

MCAPI void AppPlatformListener::$onAppSurfaceDestroyed ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onClipboardCopy()

MCAPI void AppPlatformListener::$onClipboardCopy ( ::std::string const & clipString)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onClipboardPaste()

MCAPI void AppPlatformListener::$onClipboardPaste ( ::std::string const & clipString)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $onLowMemory()

MCAPI void AppPlatformListener::$onLowMemory ( ::LowMemorySeverity )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $vftable() [1/2]

MCAPI void ** AppPlatformListener::$vftable ( )
staticinherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $vftable() [2/2]

MCAPI void ** Bedrock::EnableNonOwnerReferences::$vftable ( )
staticinherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following files: