summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-11-18 12:07:51 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-11-18 21:28:04 +0100
commit66fbd32b8cc60d350f02812d3a04f8714c0d77e0 (patch)
treeb06759ef7b175a67c9929446a7a38d84f9183d0e
parent4714b371809fb0e65073cbc95b4aafedb2c6a9ca (diff)
add documentation that this means Windows Symbol encoding
Change-Id: Ib2bbba8a21b6c82ca83c067a99dcd9bb41537e66 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142939 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/source/font/fontcharmap.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/font/fontcharmap.cxx b/vcl/source/font/fontcharmap.cxx
index 0a7148a663c0..3279218a896d 100644
--- a/vcl/source/font/fontcharmap.cxx
+++ b/vcl/source/font/fontcharmap.cxx
@@ -76,6 +76,8 @@ bool HasSymbolCmap(const unsigned char* pCmap, int nLength)
{
int nPlatform = GetUShort(p);
int nEncoding = GetUShort(p + 2);
+ // https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6cmap.html
+ // When the platformID is 3 (Windows), an encoding of 0 is Symbol
if (nPlatform == 3 && nEncoding == 0)
return true;
}