29 MRVIEWER_API
void loadAllFonts( ImWchar* charRanges,
float scaling );
48 std::array<ImFont*, size_t( FontType::Count )> fonts_{
nullptr,
nullptr,
nullptr,
nullptr };
51 std::filesystem::path getMenuLatinSemiBoldFontPath_()
const;
56 void loadFont_( FontType type,
const ImWchar* ranges,
float scaling );
59 void loadDefaultFont_(
float fontSize,
float yOffset = 0.0f );
63 std::function<void(
unsigned char* texData,
int texW )> render;
65 void addCustomGlyphs_( FontType font,
float scaling, std::vector<CustomGlyph>& glyphs );
66 void renderCustomGlyphsToAtlas_(
const std::vector<CustomGlyph>& glyphs );
Definition MRRibbonFontManager.h:11
static MRVIEWER_API void initFontManagerInstance(RibbonFontManager *ribbonFontManager)
static MRVIEWER_API float getFontSizeByType(FontType type)
get font size by font type
static MRVIEWER_API ImFont * getFontByTypeStatic(FontType type)
FontType
Definition MRRibbonFontManager.h:16
MRVIEWER_API ImFont * getFontByType(FontType type) const
get font by font type
MRVIEWER_API void loadAllFonts(ImWchar *charRanges, float scaling)
load all fonts using in ribbon menu
MRVIEWER_API std::filesystem::path getMenuFontPath() const
get ribbon menu font path
Definition MRCameraOrientationPlugin.h:7