summaryrefslogtreecommitdiff
path: root/desktop/plot_style.h
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/plot_style.h')
-rw-r--r--desktop/plot_style.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/desktop/plot_style.h b/desktop/plot_style.h
index 3b74a4efd..088f0d275 100644
--- a/desktop/plot_style.h
+++ b/desktop/plot_style.h
@@ -105,11 +105,16 @@ typedef unsigned long plot_font_flags_t;
#define FONTF_SMALLCAPS 4
/**
+ * Scaling factor for font sizes
+ */
+#define FONT_SIZE_SCALE 1024
+
+/**
* Font style for plotting
*/
typedef struct {
plot_font_generic_family_t family; /**< Generic family to plot with */
- int size; /**< Font size, in points */
+ int size; /**< Font size, in points * FONT_SIZE_SCALE */
int weight; /**< Font weight: value in range [100,900] as per CSS */
plot_font_flags_t flags; /**< Font flags */
colour background; /**< Background colour to blend to, if appropriate */