blob: a2277901d71aea7bd9fa4af6c0bec56ce474ad10 [file] [log] [blame]
/*
* @(#)AnchorTables.h 1.6 00/03/15
*
* (C) Copyright IBM Corp. 1998, 1999, 2000 - All Rights Reserved
*
*/
#ifndef __ANCHORTABLES_H
#define __ANCHORTABLES_H
#include "LETypes.h"
#include "LEFontInstance.h"
#include "OpenTypeTables.h"
struct AnchorTable
{
le_uint16 anchorFormat;
le_int16 xCoordinate;
le_int16 yCoordinate;
void getAnchor(LEGlyphID glyphID, LEFontInstance *fontInstance,
LEPoint &anchor);
};
struct Format1AnchorTable : AnchorTable
{
void getAnchor(LEFontInstance *fontInstance, LEPoint &anchor);
};
struct Format2AnchorTable : AnchorTable
{
le_uint16 anchorPoint;
void getAnchor(LEGlyphID glyphID, LEFontInstance *fontInstance, LEPoint &anchor);
};
struct Format3AnchorTable : AnchorTable
{
Offset xDeviceTableOffset;
Offset yDeviceTableOffset;
void getAnchor(LEFontInstance *fontInstance, LEPoint &anchor);
};
#endif