diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-09-12 16:52:09 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-09-12 17:06:06 +0100 |
commit | 0e076a0a57a7d73ff2480e3642fd157585110a22 (patch) | |
tree | 056231dc9c575c94f7649053c22aafce423e99fc | |
parent | 75b982c4b615acea9380b2507277c94078ba189e (diff) |
Related: fdo#82259 we don't actually care about the ttf version here
Change-Id: I75253c8cc4ab6325447d29fcb30a1992d8eb83ec
-rw-r--r-- | vcl/source/fontsubset/sft.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/fontsubset/sft.cxx b/vcl/source/fontsubset/sft.cxx index 1b5b477d6417..f0d1007d6477 100644 --- a/vcl/source/fontsubset/sft.cxx +++ b/vcl/source/fontsubset/sft.cxx @@ -2647,10 +2647,10 @@ bool getTTCoverage( const unsigned char* pTable, size_t nLength) { bool bRet = false; - sal_uInt16 nVersion = GetUInt16(pTable, 0, 1); // parse OS/2 header - if ( nVersion >= 0x0001 && nLength >= 58 ) + if (nLength >= 58) { + pTable+=4; //skip Version rUnicodeRange.append(GetUInt32(pTable, 42, 1)); rUnicodeRange.append(GetUInt32(pTable, 46, 1)); rUnicodeRange.append(GetUInt32(pTable, 50, 1)); |