diff options
Diffstat (limited to 'app/gfx/font.h')
-rw-r--r-- | app/gfx/font.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/gfx/font.h b/app/gfx/font.h index 8086117..66f5a1d 100644 --- a/app/gfx/font.h +++ b/app/gfx/font.h @@ -232,6 +232,10 @@ class Font { // The default font, used for the default constructor. static Font* default_font_; + // Return the scale factor for fonts that account for DPI. We clamp the + // max DPI to prevent large fonts from overflowing UI elements. + static float GetPangoScaleFactor(); + // The average width of a character, initialized and cached if needed. double avg_width() const; |