aboutsummaryrefslogtreecommitdiff
path: root/dw/layout.hh
diff options
context:
space:
mode:
Diffstat (limited to 'dw/layout.hh')
-rw-r--r--dw/layout.hh10
1 files changed, 10 insertions, 0 deletions
diff --git a/dw/layout.hh b/dw/layout.hh
index 13b8f312..292024a2 100644
--- a/dw/layout.hh
+++ b/dw/layout.hh
@@ -216,6 +216,16 @@ public:
return platform->prevGlyph (text, idx);
}
+ inline float dpiX ()
+ {
+ return platform->dpiX ();
+ }
+
+ inline float dpiY ()
+ {
+ return platform->dpiY ();
+ }
+
inline style::Font *createFont (style::FontAttrs *attrs, bool tryEverything)
{
return platform->createFont (attrs, tryEverything);