2000-11-28 20:56:52 +00:00
|
|
|
/*
|
|
|
|
*
|
2013-04-18 21:24:51 +00:00
|
|
|
* (C) Copyright IBM Corp. 1998 - 2013 - All Rights Reserved
|
2000-11-28 20:56:52 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "LETypes.h"
|
|
|
|
#include "OpenTypeTables.h"
|
|
|
|
#include "GlyphDefinitionTables.h"
|
|
|
|
#include "LESwaps.h"
|
|
|
|
|
2001-10-16 00:39:01 +00:00
|
|
|
U_NAMESPACE_BEGIN
|
|
|
|
|
2013-04-18 21:24:51 +00:00
|
|
|
const LEReferenceTo<GlyphClassDefinitionTable>
|
|
|
|
GlyphDefinitionTableHeader::getGlyphClassDefinitionTable(const LEReferenceTo<GlyphDefinitionTableHeader>& base,
|
|
|
|
LEErrorCode &success) const
|
2000-11-28 20:56:52 +00:00
|
|
|
{
|
2013-04-18 21:24:51 +00:00
|
|
|
if(LE_FAILURE(success)) return LEReferenceTo<GlyphClassDefinitionTable>();
|
|
|
|
return LEReferenceTo<GlyphClassDefinitionTable>(base, success, SWAPW(glyphClassDefOffset));
|
2000-11-28 20:56:52 +00:00
|
|
|
}
|
|
|
|
|
2013-04-18 21:24:51 +00:00
|
|
|
const LEReferenceTo<AttachmentListTable>
|
|
|
|
GlyphDefinitionTableHeader::getAttachmentListTable(const LEReferenceTo<GlyphDefinitionTableHeader>& base,
|
|
|
|
LEErrorCode &success) const
|
2000-11-28 20:56:52 +00:00
|
|
|
{
|
2013-04-18 21:24:51 +00:00
|
|
|
if(LE_FAILURE(success)) return LEReferenceTo<AttachmentListTable>();
|
|
|
|
return LEReferenceTo<AttachmentListTable>(base, success, SWAPW(attachListOffset));
|
2000-11-28 20:56:52 +00:00
|
|
|
}
|
|
|
|
|
2013-04-18 21:24:51 +00:00
|
|
|
const LEReferenceTo<LigatureCaretListTable>
|
|
|
|
GlyphDefinitionTableHeader::getLigatureCaretListTable(const LEReferenceTo<GlyphDefinitionTableHeader>& base,
|
|
|
|
LEErrorCode &success) const
|
2000-11-28 20:56:52 +00:00
|
|
|
{
|
2013-04-18 21:24:51 +00:00
|
|
|
if(LE_FAILURE(success)) return LEReferenceTo<LigatureCaretListTable>();
|
|
|
|
return LEReferenceTo<LigatureCaretListTable>(base, success, SWAPW(ligCaretListOffset));
|
2000-11-28 20:56:52 +00:00
|
|
|
}
|
|
|
|
|
2013-04-18 21:24:51 +00:00
|
|
|
const LEReferenceTo<MarkAttachClassDefinitionTable>
|
|
|
|
GlyphDefinitionTableHeader::getMarkAttachClassDefinitionTable(const LEReferenceTo<GlyphDefinitionTableHeader>& base,
|
|
|
|
LEErrorCode &success) const
|
2000-11-28 20:56:52 +00:00
|
|
|
{
|
2013-04-18 21:24:51 +00:00
|
|
|
if(LE_FAILURE(success)) return LEReferenceTo<MarkAttachClassDefinitionTable>();
|
|
|
|
return LEReferenceTo<MarkAttachClassDefinitionTable>(base, success, SWAPW(MarkAttachClassDefOffset));
|
2000-11-28 20:56:52 +00:00
|
|
|
}
|
|
|
|
|
2001-10-16 00:39:01 +00:00
|
|
|
U_NAMESPACE_END
|