Struct Theme::GlobalDefaultFonts

Nested Relationships

This struct is a nested type of Class Theme.

Struct Documentation

struct GlobalDefaultFonts

The font face string identifiers that are always loaded / available for every Widget.

In the (rare) event that a Widget does not have a Theme instance (this only happens when a Widget is constructed without a parent), these values are also used in the Widget font getter methods.

The five available class-level string constants are Normal, Bold, Mono, MonoBold, and Icons.

See
The implementation of nanogui::Widget::font.

Public Functions

GlobalDefaultFonts()

This class shall not be instantiated.

GlobalDefaultFonts(const GlobalDefaultFonts &other)

This class shall not be copied.

GlobalDefaultFonts(const GlobalDefaultFonts &&other)

This class shall not be moved.

Public Static Attributes

constexpr auto Normal = "sans"

The "sans" font face: see nanogui::Theme::mDefaultFont.

constexpr auto Bold = "sans-bold"

The "sans-bold" font face: see nanogui::Theme::mDefaultBoldFont.

constexpr auto Mono = "mono"

The "mono" font face: see nanogui::Theme::mDefaultMonoFont.

constexpr auto MonoBold = "mono-bold"

The "mono-bold" font face: see nanogui::Theme::mDefaultMonoBoldFont.

constexpr auto Icons = "icons"

The "icons" font face: see nanogui::Theme::mDefaultIconFont.