3#include "MRViewerFwd.h"
44 using FontFilePaths = std::array<std::filesystem::path, size_t( FontFile::Count )>;
85 ImFont* fontPtr{
nullptr };
87 std::array<FontData, size_t( FontType::Count )> fonts_;
93 void updateFontsScaledOffset_();
95 void loadFont_( FontType type,
const ImWchar* ranges );
Definition MRRibbonFontManager.h:15
static MRVIEWER_API void initFontManagerInstance(RibbonFontManager *ribbonFontManager)
static MRVIEWER_API float getFontSizeByType(FontType type)
get font size by font type
FontFile
Unique fonts that are used for different FontTypes.
Definition MRRibbonFontManager.h:35
static MRVIEWER_API FontAndSize getFontAndSizeByTypeStatic(FontType type)
static MRVIEWER_API ImFont * getFontByTypeStatic(FontType type)
MRVIEWER_API void setNewFontPaths(const FontFilePaths &paths)
const FontFilePaths & getAllFontPaths() const
returns list of all font paths
Definition MRRibbonFontManager.h:60
std::array< std::filesystem::path, size_t(FontFile::Count)> FontFilePaths
Definition MRRibbonFontManager.h:44
FontType
Font types used in current design.
Definition MRRibbonFontManager.h:20
MRVIEWER_API RibbonFontManager()
Vector2f scaledOffset
what file type to use for this font
Definition MRRibbonFontManager.h:84
MRVIEWER_API ImFont * getFontByType(FontType type) const
get font by font type
MRVIEWER_API void loadAllFonts(ImWchar *charRanges)
load all fonts using in ribbon menu
MRVIEWER_API std::filesystem::path getMenuFontPath() const
get ribbon menu font path
@ Middle
GLFW_MOUSE_BUTTON_2.
only for bindings generation
Definition MRCameraOrientationPlugin.h:8