1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/textandloc/fontservices/textshaperplugin/IcuSource/layout/AnchorTables.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,54 @@
1.4 +/*
1.5 + *
1.6 + * (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved
1.7 + *
1.8 + */
1.9 +
1.10 +#ifndef __ANCHORTABLES_H
1.11 +#define __ANCHORTABLES_H
1.12 +
1.13 +/**
1.14 + * \file
1.15 + * \internal
1.16 + */
1.17 +
1.18 +#include "LETypes.h"
1.19 +#include "LEFontInstance.h"
1.20 +#include "OpenTypeTables.h"
1.21 +
1.22 +U_NAMESPACE_BEGIN
1.23 +
1.24 +struct AnchorTable
1.25 +{
1.26 + le_uint16 anchorFormat;
1.27 + le_int16 xCoordinate;
1.28 + le_int16 yCoordinate;
1.29 +
1.30 + void getAnchor(LEGlyphID glyphID, const LEFontInstance *fontInstance,
1.31 + LEPoint &anchor) const;
1.32 +};
1.33 +
1.34 +struct Format1AnchorTable : AnchorTable
1.35 +{
1.36 + void getAnchor(const LEFontInstance *fontInstance, LEPoint &anchor) const;
1.37 +};
1.38 +
1.39 +struct Format2AnchorTable : AnchorTable
1.40 +{
1.41 + le_uint16 anchorPoint;
1.42 +
1.43 + void getAnchor(LEGlyphID glyphID, const LEFontInstance *fontInstance, LEPoint &anchor) const;
1.44 +};
1.45 +
1.46 +struct Format3AnchorTable : AnchorTable
1.47 +{
1.48 + Offset xDeviceTableOffset;
1.49 + Offset yDeviceTableOffset;
1.50 +
1.51 + void getAnchor(const LEFontInstance *fontInstance, LEPoint &anchor) const;
1.52 +};
1.53 +
1.54 +U_NAMESPACE_END
1.55 +#endif
1.56 +
1.57 +