]> git.saurik.com Git - apple/icu.git/blame - icuSources/layout/AnchorTables.h
ICU-3.13.tar.gz
[apple/icu.git] / icuSources / layout / AnchorTables.h
CommitLineData
b75a7d8f
A
1/*
2 * @(#)AnchorTables.h 1.6 00/03/15
3 *
4 * (C) Copyright IBM Corp. 1998-2003 - All Rights Reserved
5 *
6 */
7
8#ifndef __ANCHORTABLES_H
9#define __ANCHORTABLES_H
10
11/**
12 * \file
13 * \internal
14 */
15
16#include "LETypes.h"
17#include "LEFontInstance.h"
18#include "OpenTypeTables.h"
19
20U_NAMESPACE_BEGIN
21
22struct AnchorTable
23{
24 le_uint16 anchorFormat;
25 le_int16 xCoordinate;
26 le_int16 yCoordinate;
27
28 void getAnchor(LEGlyphID glyphID, const LEFontInstance *fontInstance,
29 LEPoint &anchor) const;
30};
31
32struct Format1AnchorTable : AnchorTable
33{
34 void getAnchor(const LEFontInstance *fontInstance, LEPoint &anchor) const;
35};
36
37struct Format2AnchorTable : AnchorTable
38{
39 le_uint16 anchorPoint;
40
41 void getAnchor(LEGlyphID glyphID, const LEFontInstance *fontInstance, LEPoint &anchor) const;
42};
43
44struct Format3AnchorTable : AnchorTable
45{
46 Offset xDeviceTableOffset;
47 Offset yDeviceTableOffset;
48
49 void getAnchor(const LEFontInstance *fontInstance, LEPoint &anchor) const;
50};
51
52U_NAMESPACE_END
53#endif
54
55