summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@aliftype.com>2022-09-10 22:56:43 +0200
committerخالد حسني <khaled@aliftype.com>2022-09-11 00:03:49 +0200
commitff869c52899a4e54b5bd4bbaee81adc79705200f (patch)
tree60259bde8cb4ea0ce6acfa1a60ccd3e3e70e77f1 /vcl
parentb31992ea518cec906a65ef971a637d0529302a2c (diff)
vcl: Fix setting symbol flag on TrueTypeFont
This is a fallout from: commit 8597aed8a8576ad0f6efe139ff03556217b01b31 Author: Khaled Hosny <khaled@aliftype.com> Date: Thu Sep 8 02:05:14 2022 +0200 vcl: Get FontCharMap from HarfBuzz The intent was to set m_bIsSymbolFont from m_xCharMap if provided, but the else branch went missing. Change-Id: I7c7a5a65b8ae78ec6e6d53397dc0e4fbda974e5e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139758 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@aliftype.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/fontsubset/sft.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/source/fontsubset/sft.cxx b/vcl/source/fontsubset/sft.cxx
index 93c09b31f0c5..710172fbd8de 100644
--- a/vcl/source/fontsubset/sft.cxx
+++ b/vcl/source/fontsubset/sft.cxx
@@ -1299,8 +1299,10 @@ SFErrCodes AbstractTrueTypeFont::indexGlyphData()
if (!m_xCharMap.is())
{
table = this->table(O_cmap, table_size);
- m_bIsSymbolFont = HasSymbolCmap(reinterpret_cast<const unsigned char*>(table), table_size);
+ m_bIsSymbolFont = HasSymbolCmap(table, table_size);
}
+ else
+ m_bIsSymbolFont = m_xCharMap->isSymbolic();
return SFErrCodes::Ok;
}