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
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __LIGATURESUBSTITUTIONSUBTABLES_H
|
|
|
|
#define __LIGATURESUBSTITUTIONSUBTABLES_H
|
|
|
|
|
2003-01-13 23:15:11 +00:00
|
|
|
/**
|
|
|
|
* \file
|
|
|
|
* \internal
|
|
|
|
*/
|
|
|
|
|
2000-11-28 20:56:52 +00:00
|
|
|
#include "LETypes.h"
|
|
|
|
#include "LEGlyphFilter.h"
|
|
|
|
#include "OpenTypeTables.h"
|
|
|
|
#include "GlyphSubstitutionTables.h"
|
|
|
|
#include "GlyphIterator.h"
|
|
|
|
|
2001-10-16 00:39:01 +00:00
|
|
|
U_NAMESPACE_BEGIN
|
|
|
|
|
2000-11-28 20:56:52 +00:00
|
|
|
struct LigatureSetTable
|
|
|
|
{
|
|
|
|
le_uint16 ligatureCount;
|
|
|
|
Offset ligatureTableOffsetArray[ANY_NUMBER];
|
|
|
|
};
|
2013-04-18 21:24:51 +00:00
|
|
|
LE_VAR_ARRAY(LigatureSetTable, ligatureTableOffsetArray)
|
2000-11-28 20:56:52 +00:00
|
|
|
|
|
|
|
struct LigatureTable
|
|
|
|
{
|
2003-02-05 00:05:40 +00:00
|
|
|
TTGlyphID ligGlyph;
|
2000-11-28 20:56:52 +00:00
|
|
|
le_uint16 compCount;
|
2003-02-05 00:05:40 +00:00
|
|
|
TTGlyphID componentArray[ANY_NUMBER];
|
2000-11-28 20:56:52 +00:00
|
|
|
};
|
2013-04-18 21:24:51 +00:00
|
|
|
LE_VAR_ARRAY(LigatureTable, componentArray)
|
2000-11-28 20:56:52 +00:00
|
|
|
|
|
|
|
struct LigatureSubstitutionSubtable : GlyphSubstitutionSubtable
|
|
|
|
{
|
2003-02-05 00:05:40 +00:00
|
|
|
le_uint16 ligSetCount;
|
|
|
|
Offset ligSetTableOffsetArray[ANY_NUMBER];
|
2000-11-28 20:56:52 +00:00
|
|
|
|
2013-04-18 21:24:51 +00:00
|
|
|
le_uint32 process(const LETableReference &base, GlyphIterator *glyphIterator, LEErrorCode &success, const LEGlyphFilter *filter = NULL) const;
|
2000-11-28 20:56:52 +00:00
|
|
|
};
|
2013-04-18 21:24:51 +00:00
|
|
|
LE_VAR_ARRAY(LigatureSubstitutionSubtable, ligSetTableOffsetArray)
|
2000-11-28 20:56:52 +00:00
|
|
|
|
2001-10-16 00:39:01 +00:00
|
|
|
U_NAMESPACE_END
|
2000-11-28 20:56:52 +00:00
|
|
|
#endif
|