summaryrefslogtreecommitdiff
path: root/include/vcl/font.hxx
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2016-01-15 17:33:17 +1100
committerChris Sherlock <chris.sherlock79@gmail.com>2016-01-15 18:39:31 +1100
commit9a790ca414ccc7f330e20af7ad76fe16cc0259b1 (patch)
tree0c2697828db92a22b9bb535427f4b2dbb67e16ae /include/vcl/font.hxx
parent1ea4f371f8be5551fb936fa04d1799eda40a1e39 (diff)
vcl: add symbol and charset accessors and mutators to Font
Rules for the vcl::Font class for setting character set and the symbol flag: If the characterset changes to anything other than RTL_TEXTENCODING_SYMBOL then the symbol flag should be off. If the characterset changes to RTL_TEXTENCODING_SYMBOL then the symbol flag should be on. If the symbol flag is set to false and the characterset is already RTL_TEXTENCODING_SYMBOL then set the characterset to RTL_TEXTENCODING_DONTKNOW and set the symbol flag to false. However, if we are setting the symbol flag from false to false (i.e. we know the characterset) then we can keep the characterset as it is. Unit test written in this commit to test this is working. Change-Id: Iced44659ab88ff66b711c560cb68bd4681ecb537
Diffstat (limited to 'include/vcl/font.hxx')
-rw-r--r--include/vcl/font.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/vcl/font.hxx b/include/vcl/font.hxx
index 14b02651f55f..04052ad3f47a 100644
--- a/include/vcl/font.hxx
+++ b/include/vcl/font.hxx
@@ -81,6 +81,9 @@ public:
FontFamily GetFamily() const;
void SetCharSet( rtl_TextEncoding );
rtl_TextEncoding GetCharSet() const;
+ void SetSymbolFlag( bool );
+ bool IsSymbolFont() const;
+
// Prefer LanguageTag over LanguageType
void SetLanguageTag( const LanguageTag & );
const LanguageTag& GetLanguageTag() const;