1c9f0bf8a3
X-SVN-Rev: 3021
49 lines
928 B
C
49 lines
928 B
C
/*
|
|
* @(#)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
|
|
|
|
|