2000-11-28 20:56:52 +00:00
|
|
|
/*
|
|
|
|
*
|
2004-05-07 23:29:16 +00:00
|
|
|
* (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved
|
2000-11-28 20:56:52 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ANCHORTABLES_H
|
|
|
|
#define __ANCHORTABLES_H
|
|
|
|
|
2003-01-13 23:15:11 +00:00
|
|
|
/**
|
|
|
|
* \file
|
|
|
|
* \internal
|
|
|
|
*/
|
|
|
|
|
2000-11-28 20:56:52 +00:00
|
|
|
#include "LETypes.h"
|
|
|
|
#include "LEFontInstance.h"
|
|
|
|
#include "OpenTypeTables.h"
|
|
|
|
|
2001-10-16 00:39:01 +00:00
|
|
|
U_NAMESPACE_BEGIN
|
|
|
|
|
2000-11-28 20:56:52 +00:00
|
|
|
struct AnchorTable
|
|
|
|
{
|
|
|
|
le_uint16 anchorFormat;
|
|
|
|
le_int16 xCoordinate;
|
|
|
|
le_int16 yCoordinate;
|
|
|
|
|
2000-12-21 01:18:44 +00:00
|
|
|
void getAnchor(LEGlyphID glyphID, const LEFontInstance *fontInstance,
|
2001-01-19 00:30:17 +00:00
|
|
|
LEPoint &anchor) const;
|
2000-11-28 20:56:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct Format1AnchorTable : AnchorTable
|
|
|
|
{
|
2001-01-19 00:30:17 +00:00
|
|
|
void getAnchor(const LEFontInstance *fontInstance, LEPoint &anchor) const;
|
2000-11-28 20:56:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct Format2AnchorTable : AnchorTable
|
|
|
|
{
|
|
|
|
le_uint16 anchorPoint;
|
|
|
|
|
2001-01-19 00:30:17 +00:00
|
|
|
void getAnchor(LEGlyphID glyphID, const LEFontInstance *fontInstance, LEPoint &anchor) const;
|
2000-11-28 20:56:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct Format3AnchorTable : AnchorTable
|
|
|
|
{
|
|
|
|
Offset xDeviceTableOffset;
|
|
|
|
Offset yDeviceTableOffset;
|
|
|
|
|
2001-01-19 00:30:17 +00:00
|
|
|
void getAnchor(const LEFontInstance *fontInstance, LEPoint &anchor) const;
|
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
|
|
|
|
|
|
|
|
|