diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-10-02 19:32:44 +0200 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-10-05 09:47:01 +0200 |
commit | 08371f8d8532fd82cb59d9eae85cb2e5a835376f (patch) | |
tree | 1586944bfee51ee68cb47e64d630c46f25b44abe /dw/platform.hh | |
parent | ac56aa678cfe1666b60821f342ccb7b3d3fa7a0d (diff) |
Add support for more CSS units
Implements support for ch, rem, vw, vh, vmin and vmax units of CSS
lengths. For now the units relative to the viewport are only computed
once, and they won't change when the window is resized, but only when
the page is reloaded.
See: https://www.toomanyatoms.com/software/mobilized_dillo.html
Authored-By: dogma
Diffstat (limited to 'dw/platform.hh')
-rw-r--r-- | dw/platform.hh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/dw/platform.hh b/dw/platform.hh index 227cda33..be9b4a58 100644 --- a/dw/platform.hh +++ b/dw/platform.hh @@ -121,10 +121,11 @@ public: * is defined, which holds more platform dependent data. * * Also, this method must fill the attributes "font" (when needed), - * "ascent", "descent", "spaceSidth" and "xHeight". If "tryEverything" - * is true, several methods should be used to use another font, when - * the requested font is not available. Passing false is typically done, - * if the caller wants to test different variations. + * "ascent", "descent", "spaceSidth", "zeroWidth" and "xHeight". If + * "tryEverything" is true, several methods should be used to use + * another font, when the requested font is not available. Passing + * false is typically done, if the caller wants to test different + * variations. */ virtual style::Font *createFont (style::FontAttrs *attrs, bool tryEverything) = 0; |