]>
git.saurik.com Git - apple/icu.git/blob - icuSources/layout/GlyphLookupTables.cpp
3 * (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved
8 #include "OpenTypeTables.h"
9 #include "ScriptAndLanguage.h"
10 #include "GlyphLookupTables.h"
15 le_bool
GlyphLookupTableHeader::coversScript(LETag scriptTag
) const
17 const ScriptListTable
*scriptListTable
= (const ScriptListTable
*) ((char *)this + SWAPW(scriptListOffset
));
19 return scriptListOffset
!= 0 && scriptListTable
->findScript(scriptTag
) != NULL
;
22 le_bool
GlyphLookupTableHeader::coversScriptAndLanguage(LETag scriptTag
, LETag languageTag
, le_bool exactMatch
) const
24 const ScriptListTable
*scriptListTable
= (const ScriptListTable
*) ((char *)this + SWAPW(scriptListOffset
));
25 const LangSysTable
*langSysTable
= scriptListTable
->findLanguage(scriptTag
, languageTag
, exactMatch
);
27 // FIXME: could check featureListOffset, lookupListOffset, and lookup count...
28 // Note: don't have to SWAPW langSysTable->featureCount to check for non-zero.
29 return langSysTable
!= NULL
&& langSysTable
->featureCount
!= 0;