diff options
Diffstat (limited to 'dw/layout.hh')
-rw-r--r-- | dw/layout.hh | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/dw/layout.hh b/dw/layout.hh index 13b8f312..ce9786f1 100644 --- a/dw/layout.hh +++ b/dw/layout.hh @@ -216,19 +216,24 @@ public: return platform->prevGlyph (text, idx); } - inline style::Font *createFont (style::FontAttrs *attrs, bool tryEverything) + inline float dpiX () { - return platform->createFont (attrs, tryEverything); + return platform->dpiX (); } - inline style::Color *createSimpleColor (int color) + inline float dpiY () { - return platform->createSimpleColor (color); + return platform->dpiY (); + } + + inline style::Font *createFont (style::FontAttrs *attrs, bool tryEverything) + { + return platform->createFont (attrs, tryEverything); } - inline style::Color *createShadedColor (int color) + inline style::Color *createColor (int color) { - return platform->createShadedColor (color); + return platform->createColor (color); } inline Imgbuf *createImgbuf (Imgbuf::Type type, int width, int height) |