Vuo  2.4.0
VuoRendererFonts.hh
Go to the documentation of this file.
1
10#pragma once
11
16{
17public:
18 static VuoRendererFonts * getSharedFonts(void);
19
20 static double getHorizontalOffset(const QFont font, const QString text);
21
22 static const qreal thickPenWidth;
23 static const qreal midPenWidth;
24
25 static const QString fontFamily;
26
27 static const qreal nodeTitleFontSize;
28 static const qreal nodeClassFontSize;
29 static const qreal portTitleFontSize;
30 static const qreal portDetailFontSize;
31
32 QFont nodeTitleFont(void);
33 QFont nodeClassFont(void);
34 QFont nodePortTitleFont(void);
35 QFont nodePortConstantFont(void);
36 QFont portPopoverFont(void);
37 QFont dialogHeadingFont();
38 QFont dialogBodyFont();
39 QFont commentFont(void);
40
41 QString getCSS(QFont font);
42
43private:
44 VuoRendererFonts(void);
45 static void addFont(QString font);
46
47 static VuoRendererFonts *sharedFonts;
48};
49