VCV Rack API v2
Loading...
Searching...
No Matches
rack::window::Font Struct Reference

Text font loaded in a particular Window context. More...

#include <Window.hpp>

Public Member Functions

 ~Font ()
 
void loadFile (const std::string &filename, NVGcontext *vg)
 Don't call this directly but instead use APP->window->loadFont()
 

Static Public Member Functions

static DEPRECATED std::shared_ptr< Fontload (const std::string &filename)
 Use APP->window->loadFont() instead.
 

Public Attributes

NVGcontext * vg
 
int handle = -1
 

Detailed Description

Text font loaded in a particular Window context.

Constructor & Destructor Documentation

◆ ~Font()

rack::window::Font::~Font ( )

Member Function Documentation

◆ loadFile()

void rack::window::Font::loadFile ( const std::string & filename,
NVGcontext * vg )

Don't call this directly but instead use APP->window->loadFont()

◆ load()

static DEPRECATED std::shared_ptr< Font > rack::window::Font::load ( const std::string & filename)
static

Use APP->window->loadFont() instead.

Member Data Documentation

◆ vg

NVGcontext* rack::window::Font::vg

◆ handle

int rack::window::Font::handle = -1

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