#include <MRRibbonFontManager.h>
|
MRVIEWER_API void | loadAllFonts (ImWchar *charRanges, float scaling) |
| load all fonts using in ribbon menu
|
|
MRVIEWER_API ImFont * | getFontByType (FontType type) const |
| get font by font type
|
|
MRVIEWER_API std::filesystem::path | getMenuFontPath () const |
| get ribbon menu font path
|
|
◆ FontType
Enumerator |
---|
Default | |
Small | |
SemiBold | |
Icons | |
Big | |
BigSemiBold | |
Headline | |
Monospace | |
Count | |
◆ getFontByType()
MRVIEWER_API ImFont * MR::RibbonFontManager::getFontByType |
( |
FontType | type | ) |
const |
◆ getFontByTypeStatic()
static MRVIEWER_API ImFont * MR::RibbonFontManager::getFontByTypeStatic |
( |
FontType | type | ) |
|
|
static |
get font by font type (need to avoid dynamic cast menu to ribbon menu)
◆ getFontSizeByType()
static MRVIEWER_API float MR::RibbonFontManager::getFontSizeByType |
( |
FontType | type | ) |
|
|
static |
get font size by font type
◆ getMenuFontPath()
MRVIEWER_API std::filesystem::path MR::RibbonFontManager::getMenuFontPath |
( |
| ) |
const |
get ribbon menu font path
◆ initFontManagerInstance()
static MRVIEWER_API void MR::RibbonFontManager::initFontManagerInstance |
( |
RibbonFontManager * | ribbonFontManager | ) |
|
|
static |
initialize static holder for easier access to ribbon fonts (need to avoid dynamic cast menu to ribbon menu)
◆ loadAllFonts()
MRVIEWER_API void MR::RibbonFontManager::loadAllFonts |
( |
ImWchar * | charRanges, |
|
|
float | scaling ) |
load all fonts using in ribbon menu
The documentation for this class was generated from the following file: