Vuo
1.2.0
|
Provides fonts for rendered items in a composition.
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. | |
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 stateful indicator bars and typecast port edges. | |
static const qreal | nodeTitleFontSize = thickPenWidth*12.0/16.0 |
Size, in typographic points, of the node's title. | |
static const qreal | nodeDetailFontSize = thickPenWidth*9.0/16.0 |
Size, in typographic points, of the node's class name and port labels. | |
static const qreal | portDetailFontSize = thickPenWidth*8.0/16.0 |
Size, in typographic points, of port constant flag and typeconverter text. | |
|
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.
|
static |
Returns a shared font provider.
Don't free this object.
QFont VuoRendererFonts::nodeClassFont | ( | void | ) |
Returns the font for a node's class name.
QFont VuoRendererFonts::nodePortConstantFont | ( | void | ) |
Returns the font for a port's constant flag or typecast.
QFont VuoRendererFonts::nodePortTitleFont | ( | void | ) |
Returns the font for a port's title.
QFont VuoRendererFonts::nodeTitleFont | ( | void | ) |
Returns the font for a node's title.
QFont VuoRendererFonts::portPopoverFont | ( | void | ) |
Returns the font for a port's popover text.
|
static |
Width, in pixels at 1:1 zoom, of stateful indicator bars and typecast port edges.
|
static |
Size, in typographic points, of the node's class name and port labels.
|
static |
Size, in typographic points, of the node's title.
|
static |
Size, in typographic points, of port constant flag and typeconverter text.
|
static |
Width, in pixels at 1:1 zoom, of the top and bottom node edges. Many other drawing metrics are based on this value.