3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/Font.h"
7#include "mc/deps/core/file/PathBuffer.h"
8#include "mc/deps/minecraft_renderer/renderer/Type.h"
15namespace Core {
class Path; }
16namespace mce {
class Color; }
25 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mFontPagePrefix;
26 ::ll::TypedStorage<8, 64, ::std::unordered_map<int, float>> mUnicodeWidths;
27 ::ll::TypedStorage<8, 64, ::std::unordered_set<int>> mSheetScannedForWidthsAndOffsets;
28 ::ll::TypedStorage<8, 64, ::std::unordered_map<int, int>> mRemappedGlyphs;
38 virtual float _getCharWidth(
int uniChar,
bool forceUnicode) ;
40 virtual bool supportsChar(
int const& character) ;
42 virtual float getWrapHeight() const ;
44 virtual
float getScaleFactor() const ;
46 virtual
bool isScreenPixelAligned() const ;
48 virtual
bool materialCanBeOverridden() const ;
50 virtual
void uploadTextureToGPU() ;
52 virtual
void setTextConstantsInScreenContext(
53 ::ScreenContext& screenContext,
56 ::mce::Color const& textColor,
60 virtual ::Vec2 getTranslationFactor() const ;
62 virtual
void _scanUnicodeCharacterSize(
int character,
int sheet,
bool forceUnicode) ;
64 virtual
bool _supportsShadowInSingleDraw() ;
66 virtual ::ResourceLocation _getFontSheetLocation(
int sheet,
bool) const ;
68 virtual ::mce::MaterialPtr const& getMaterial(
int sheet,
bool isOddGuiScale) const ;
70 virtual ::mce::Font::Type getType(
int glyphSheet) const ;
72 virtual
void loadFontData(
bool) ;
74 virtual
float buildChar(
77 ::mce::Color const& color,
84 virtual ::Core::PathBuffer<::std::
string>
85 getUnicodeFontNameWithPage(::Core::Path const& fontName, uchar const page) const;
87 virtual
int _getReplacementCharacter() ;
89 virtual ::std::
string _remapString(::std::string_view str) const ;
91 virtual
void switchFontsource(::Core::Path const&, ::Core::Path const&) ;
93 virtual ::std::pair<::Core::PathBuffer<::std::
string> const&, ::Core::PathBuffer<::std::
string> const&>
94 getFontSources() const ;
101 ::Core::
Path const& fontPagePrefix,
102 ::
std::shared_ptr<::mce::TextureGroup> textureGroup,
103 bool uploadOnConstruction
113 ::Core::
Path const& fontPagePrefix,
114 ::
std::shared_ptr<::mce::TextureGroup> textureGroup,
115 bool uploadOnConstruction
140 ::mce::Color const& textColor,
152 MCNAPI ::mce::MaterialPtr const&
$getMaterial(
int sheet,
bool isOddGuiScale) const;
154 MCNAPI ::mce::Font::Type
$getType(
int glyphSheet) const;
161 ::mce::Color const& color,
168 MCNAPI ::Core::PathBuffer<::
std::
string>
177 MCNAPI ::
std::pair<::Core::PathBuffer<::
std::
string> const&, ::Core::PathBuffer<::
std::
string> const&>
MCAPI float $buildChar(::std::vector<::Font::GlyphQuad > &quads, int i, ::mce::Color const &color, bool italic, float x, float y, bool unicode)
MCAPI bool $_supportsShadowInSingleDraw()
MCAPI float $getWrapHeight() const
MCAPI::Vec2 $getTranslationFactor() const
MCAPI void $setTextConstantsInScreenContext(::ScreenContext &screenContext, int, float guiScale, ::mce::Color const &textColor, bool hasShadow) const
MCAPI::std::string $_remapString(::std::string_view str) const
MCAPI bool $materialCanBeOverridden() const
MCAPI bool $isScreenPixelAligned() const
MCAPI ::std::pair<::Core::PathBuffer<::std::string > const &, ::Core::PathBuffer<::std::string > const & > $getFontSources() const
MCAPI::mce::MaterialPtr const & $getMaterial(int sheet, bool isOddGuiScale) const
MCAPI void $loadFontData(bool)
MCAPI void $switchFontsource(::Core::Path const &, ::Core::Path const &)
MCAPI bool $supportsChar(int const &character)
MCAPI::ResourceLocation $_getFontSheetLocation(int sheet, bool) const
MCAPI void $_scanUnicodeCharacterSize(int character, int sheet, bool forceUnicode)
MCAPI::mce::Font::Type $getType(int glyphSheet) const
MCAPI void _loadMsdfFontInformation(::Core::Path const &fontName, uchar const page)
MCAPI float $getScaleFactor() const
MCAPI void * $ctor(::Core::Path const &fontPagePrefix, ::std::shared_ptr<::mce::TextureGroup > textureGroup, bool uploadOnConstruction)
MCAPI int $_getReplacementCharacter()
MCAPI ::Core::PathBuffer<::std::string > $getUnicodeFontNameWithPage(::Core::Path const &fontName, uchar const page) const
MCAPI void $uploadTextureToGPU()
MCAPI float $_getCharWidth(int uniChar, bool forceUnicode)
Definition ResourceLocation.h:15
Definition ScreenContext.h:5
Definition MaterialPtr.h:14
Definition TextureGroup.h:7