MeshLib C++ Docs
Loading...
Searching...
No Matches

#include <MRViewer/MRRibbonFontManager.h>

Public Types

enum class  FontType {
  FontType::Default , FontType::Small , FontType::Middle , FontType::SemiBold ,
  FontType::Icons , FontType::Big , FontType::BigSemiBold , FontType::Headline ,
  FontType::Monospace , FontType::Count
}
 Font types used in current design. More...
enum class  FontFile {
  FontFile::Regular , FontFile::RegularSC , FontFile::SemiBold , FontFile::Monospace ,
  FontFile::Icons , FontFile::Count
}
 Unique fonts that are used for different FontTypes. More...
using FontFilePaths = std::array<std::filesystem::path, size_t( FontFile::Count )>

Public Member Functions

 RibbonFontManager ()
void loadAllFonts (ImWchar *charRanges)
 load all fonts using in ribbon menu
ImFont * getFontByType (FontType type) const
 get font by font type
std::filesystem::path getMenuFontPath () const
 get ribbon menu font path
const FontFilePathsgetAllFontPaths () const
 returns list of all font paths
void setNewFontPaths (const FontFilePaths &paths)

Static Public Member Functions

static float getFontSizeByType (FontType type)
 get font size by font type
static ImFont * getFontByTypeStatic (FontType type)
static FontAndSize getFontAndSizeByTypeStatic (FontType type)
static void initFontManagerInstance (RibbonFontManager *ribbonFontManager)

The documentation for this class was generated from the following file: