diff options
Diffstat (limited to 'include/vcl/font.hxx')
-rw-r--r-- | include/vcl/font.hxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/vcl/font.hxx b/include/vcl/font.hxx index 2dc0a5b326cd..02dab4d8b51e 100644 --- a/include/vcl/font.hxx +++ b/include/vcl/font.hxx @@ -163,10 +163,21 @@ public: typedef o3tl::cow_wrapper< ImplFont > ImplType; + inline bool IsUnderlineAbove() const; + private: ImplType mpImplFont; }; +inline bool Font::IsUnderlineAbove() const +{ + if (!IsVertical()) + return false; + // the underline is right for Japanese only + return (LANGUAGE_JAPANESE == GetLanguage()) || + (LANGUAGE_JAPANESE == GetCJKContextLanguage()); +} + } #endif // _VCL_FONT_HXX |