diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-09-29 16:57:40 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-09-30 10:06:02 +0200 |
commit | 4d445ac9aa43b3399a579e3dbb1aac94507c9520 (patch) | |
tree | 9da5a7e7f7586e1cf9b5b82361b3988dae22af72 /include/vcl/weld.hxx | |
parent | 61050c6d7b8bceef2704eba0bfe4473ee75e669d (diff) |
Related: tdf#141633 support setting a custom font for TextView
Change-Id: I4c27a21c5c682fc73c37594749627e4cc7c0822d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122833
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl/weld.hxx')
-rw-r--r-- | include/vcl/weld.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index ee647b341e21..5ca6a468e33c 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -2131,6 +2131,9 @@ public: return get_text_height() * nRows; } + // font size is in points, not pixels, e.g. see Window::[G]etPointFont + virtual void set_font(const vcl::Font& rFont) = 0; + /* Typically you want to avoid the temptation of customizing font colors |