Provides fonts for rendered items in a composition.
Definition at line 15 of file VuoRendererFonts.hh.
Public Member Functions | |
QFont | nodeTitleFont (void) |
Returns the font for a node's title. | |
QFont | nodeClassFont (void) |
Returns the font for a node's class name. | |
QFont | nodePortTitleFont (void) |
Returns the font for a port's title. | |
QFont | nodePortConstantFont (void) |
Returns the font for a port's constant flag or typecast. | |
QFont | portPopoverFont (void) |
Returns the font for a port's popover text. | |
QFont | dialogHeadingFont () |
Returns the font for dialog box headings. | |
QFont | dialogBodyFont () |
Returns the font for text in dialog boxes. | |
QFont | commentFont (void) |
Returns the font for comments. | |
QString | getCSS (QFont font) |
Returns a CSS string selecting the specified font. | |
Static Public Member Functions | |
static VuoRendererFonts * | getSharedFonts (void) |
Returns a shared font provider. | |
static double | getHorizontalOffset (const QFont font, const QString text) |
Returns the horizontal distance between the left side of the bounding box and the left side of the first glyph in text , to compensate for the empty space left of the first glyph that causes multiple lines of text to appear misaligned. | |
Static Public Attributes | |
static const qreal | thickPenWidth = 20 |
Width, in pixels at 1:1 zoom, of the top and bottom node edges. Many other drawing metrics are based on this value. | |
static const qreal | midPenWidth = VuoRendererFonts::thickPenWidth/10.0 |
Width, in pixels at 1:1 zoom, of typecast port edges. | |
static const QString | fontFamily = "PT Sans" |
The font family used to render all text in Vuo. | |
static const qreal | nodeTitleFontSize = 13 |
Size, in typographic points, of the node's title. | |
static const qreal | nodeClassFontSize = 10 |
Size, in typographic points, of the node's class name. | |
static const qreal | portTitleFontSize = 11 |
Size, in typographic points, of the node's port labels. | |
static const qreal | portDetailFontSize = 10 |
Size, in typographic points, of port constant flag and typeconverter text. | |
QFont VuoRendererFonts::commentFont | ( | void | ) |
Returns the font for comments.
Definition at line 136 of file VuoRendererFonts.cc.
QFont VuoRendererFonts::dialogBodyFont | ( | ) |
Returns the font for text in dialog boxes.
Definition at line 128 of file VuoRendererFonts.cc.
QFont VuoRendererFonts::dialogHeadingFont | ( | ) |
Returns the font for dialog box headings.
Definition at line 120 of file VuoRendererFonts.cc.
QString VuoRendererFonts::getCSS | ( | QFont | font | ) |
Returns a CSS string selecting the specified font.
Definition at line 158 of file VuoRendererFonts.cc.
|
static |
Returns the horizontal distance between the left side of the bounding box and the left side of the first glyph in text
, to compensate for the empty space left of the first glyph that causes multiple lines of text to appear misaligned.
Definition at line 145 of file VuoRendererFonts.cc.
|
static |
Returns a shared font provider.
Don't free this object.
Definition at line 29 of file VuoRendererFonts.cc.
QFont VuoRendererFonts::nodeClassFont | ( | void | ) |
Returns the font for a node's class name.
Definition at line 88 of file VuoRendererFonts.cc.
QFont VuoRendererFonts::nodePortConstantFont | ( | void | ) |
Returns the font for a port's constant flag or typecast.
Definition at line 104 of file VuoRendererFonts.cc.
QFont VuoRendererFonts::nodePortTitleFont | ( | void | ) |
Returns the font for a port's title.
Definition at line 96 of file VuoRendererFonts.cc.
QFont VuoRendererFonts::nodeTitleFont | ( | void | ) |
Returns the font for a node's title.
Definition at line 80 of file VuoRendererFonts.cc.
QFont VuoRendererFonts::portPopoverFont | ( | void | ) |
Returns the font for a port's popover text.
Definition at line 112 of file VuoRendererFonts.cc.
|
static |
The font family used to render all text in Vuo.
Definition at line 25 of file VuoRendererFonts.hh.
|
static |
Width, in pixels at 1:1 zoom, of typecast port edges.
Definition at line 23 of file VuoRendererFonts.hh.
|
static |
Size, in typographic points, of the node's class name.
Definition at line 28 of file VuoRendererFonts.hh.
|
static |
Size, in typographic points, of the node's title.
Definition at line 27 of file VuoRendererFonts.hh.
|
static |
Size, in typographic points, of port constant flag and typeconverter text.
Definition at line 30 of file VuoRendererFonts.hh.
|
static |
Size, in typographic points, of the node's port labels.
Definition at line 29 of file VuoRendererFonts.hh.
|
static |
Width, in pixels at 1:1 zoom, of the top and bottom node edges. Many other drawing metrics are based on this value.
Definition at line 22 of file VuoRendererFonts.hh.