87 std::array<FontData, size_t( FontType::Count )> fonts_;
93 void updateFontsScaledOffset_();
95 void loadFont_( FontType type,
const ImWchar* ranges );
Definition MRRibbonFontManager.h:15
std::pair< ImFont *, float > FontAndSize
Definition MRViewerFwd.h:90
FontFile
Unique fonts that are used for different FontTypes.
Definition MRRibbonFontManager.h:35
static float getFontSizeByType(FontType type)
get font size by font type
ImFont * fontPtr
offset that is used for each glyph while creating atlas (updates in updateFontsScaledOffset_),...
Definition MRRibbonFontManager.h:85
void setNewFontPaths(const FontFilePaths &paths)
static FontAndSize getFontAndSizeByTypeStatic(FontType type)
static void initFontManagerInstance(RibbonFontManager *ribbonFontManager)
ImFont * getFontByType(FontType type) const
get font by font type
static ImFont * getFontByTypeStatic(FontType type)
FontFile fontFile
Definition MRRibbonFontManager.h:83
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
Vector2f scaledOffset
what file type to use for this font
Definition MRRibbonFontManager.h:84
void loadAllFonts(ImWchar *charRanges)
load all fonts using in ribbon menu
std::filesystem::path getMenuFontPath() const
get ribbon menu font path
@ RegularSC
Definition MRRibbonFontManager.h:37
@ Regular
Definition MRRibbonFontManager.h:36
@ Count
Definition MRRibbonFontManager.h:41
@ BigSemiBold
Definition MRRibbonFontManager.h:27
@ Small
Definition MRRibbonFontManager.h:22
@ SemiBold
Definition MRRibbonFontManager.h:24
@ Default
Definition MRRibbonFontManager.h:21
@ Icons
Definition MRRibbonFontManager.h:25
@ Monospace
Definition MRRibbonFontManager.h:29
@ Middle
Definition MRRibbonFontManager.h:23
@ Headline
Definition MRRibbonFontManager.h:28
@ Big
Definition MRRibbonFontManager.h:26
@ Count
Definition MRRibbonFontManager.h:30
only for bindings generation
Definition MRCameraOrientationPlugin.h:8