os/textandloc/fontservices/textshaperplugin/IcuSource/layout/AnchorTables.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
/*
sl@0
     2
 *
sl@0
     3
 * (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved
sl@0
     4
 *
sl@0
     5
 */
sl@0
     6
sl@0
     7
#ifndef __ANCHORTABLES_H
sl@0
     8
#define __ANCHORTABLES_H
sl@0
     9
sl@0
    10
/**
sl@0
    11
 * \file
sl@0
    12
 * \internal
sl@0
    13
 */
sl@0
    14
sl@0
    15
#include "LETypes.h"
sl@0
    16
#include "LEFontInstance.h"
sl@0
    17
#include "OpenTypeTables.h"
sl@0
    18
sl@0
    19
U_NAMESPACE_BEGIN
sl@0
    20
sl@0
    21
struct AnchorTable
sl@0
    22
{
sl@0
    23
    le_uint16  anchorFormat;
sl@0
    24
    le_int16   xCoordinate;
sl@0
    25
    le_int16   yCoordinate;
sl@0
    26
sl@0
    27
    void    getAnchor(LEGlyphID glyphID, const LEFontInstance *fontInstance,
sl@0
    28
                      LEPoint &anchor) const;
sl@0
    29
};
sl@0
    30
sl@0
    31
struct Format1AnchorTable : AnchorTable
sl@0
    32
{
sl@0
    33
    void getAnchor(const LEFontInstance *fontInstance, LEPoint &anchor) const;
sl@0
    34
};
sl@0
    35
sl@0
    36
struct Format2AnchorTable : AnchorTable
sl@0
    37
{
sl@0
    38
    le_uint16  anchorPoint;
sl@0
    39
sl@0
    40
    void getAnchor(LEGlyphID glyphID, const LEFontInstance *fontInstance, LEPoint &anchor) const;
sl@0
    41
};
sl@0
    42
sl@0
    43
struct Format3AnchorTable : AnchorTable
sl@0
    44
{
sl@0
    45
    Offset  xDeviceTableOffset;
sl@0
    46
    Offset  yDeviceTableOffset;
sl@0
    47
sl@0
    48
    void getAnchor(const LEFontInstance *fontInstance, LEPoint &anchor) const;
sl@0
    49
};
sl@0
    50
sl@0
    51
U_NAMESPACE_END
sl@0
    52
#endif
sl@0
    53
sl@0
    54