3 * (C) Copyright IBM Corp. 1998 - 2013 - All Rights Reserved
8 #include "OpenTypeTables.h"
9 #include "GlyphDefinitionTables.h"
14 const LEReferenceTo
<GlyphClassDefinitionTable
>
15 GlyphDefinitionTableHeader::getGlyphClassDefinitionTable(const LEReferenceTo
<GlyphDefinitionTableHeader
>& base
,
16 LEErrorCode
&success
) const
18 if(LE_FAILURE(success
)) return LEReferenceTo
<GlyphClassDefinitionTable
>();
19 return LEReferenceTo
<GlyphClassDefinitionTable
>(base
, success
, SWAPW(glyphClassDefOffset
));
22 const LEReferenceTo
<AttachmentListTable
>
23 GlyphDefinitionTableHeader::getAttachmentListTable(const LEReferenceTo
<GlyphDefinitionTableHeader
>& base
,
24 LEErrorCode
&success
) const
26 if(LE_FAILURE(success
)) return LEReferenceTo
<AttachmentListTable
>();
27 return LEReferenceTo
<AttachmentListTable
>(base
, success
, SWAPW(attachListOffset
));
30 const LEReferenceTo
<LigatureCaretListTable
>
31 GlyphDefinitionTableHeader::getLigatureCaretListTable(const LEReferenceTo
<GlyphDefinitionTableHeader
>& base
,
32 LEErrorCode
&success
) const
34 if(LE_FAILURE(success
)) return LEReferenceTo
<LigatureCaretListTable
>();
35 return LEReferenceTo
<LigatureCaretListTable
>(base
, success
, SWAPW(ligCaretListOffset
));
38 const LEReferenceTo
<MarkAttachClassDefinitionTable
>
39 GlyphDefinitionTableHeader::getMarkAttachClassDefinitionTable(const LEReferenceTo
<GlyphDefinitionTableHeader
>& base
,
40 LEErrorCode
&success
) const
42 if(LE_FAILURE(success
)) return LEReferenceTo
<MarkAttachClassDefinitionTable
>();
43 return LEReferenceTo
<MarkAttachClassDefinitionTable
>(base
, success
, SWAPW(MarkAttachClassDefOffset
));