diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-02-02 17:54:27 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-02-02 17:54:27 +0000 |
commit | 94bf0ef69c79ee2b044f6dd8cd7f0506fa3e10c8 (patch) | |
tree | 49d99a860b19241e8b00491f0eb97b805d29ba58 | |
parent | ee9576921abd300919d484b24f90335adc2a8b17 (diff) |
INTEGRATION: CWS geordi2q14 (1.4.104); FILE MERGED
2004/01/28 15:46:41 hr 1.4.104.1: #111934#: merge CWS vcl7pp1r3
-rw-r--r-- | psprint/source/fontsubset/gsub.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/psprint/source/fontsubset/gsub.cxx b/psprint/source/fontsubset/gsub.cxx index 0ba6cd817e98..9e8192a0bfe8 100644 --- a/psprint/source/fontsubset/gsub.cxx +++ b/psprint/source/fontsubset/gsub.cxx @@ -2,9 +2,9 @@ * * $RCSfile: gsub.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: pl $ $Date: 2002-08-02 12:11:20 $ + * last change: $Author: hr $ $Date: 2004-02-02 18:54:27 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -108,9 +108,10 @@ int ReadGSUB( struct _TrueTypeFont* pTTFile, unsigned char* pGsubBase, const USHORT nOfsFeatureTable = NEXT_UShort( pGsubHeader ); const USHORT nOfsLookupList = NEXT_UShort( pGsubHeader ); - // sanity check + // sanity check the GSUB header if( nVersion != 0x00010000 ) - return -1; // unknown format or broken + if( nVersion != 0x00001000 ) // workaround for SunBatang etc. + return -1; // unknown format or broken typedef std::vector<ULONG> ReqFeatureTagList; ReqFeatureTagList aReqFeatureTagList; |