os/textandloc/fontservices/textshaperplugin/IcuSource/layout/KernTable.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/textandloc/fontservices/textshaperplugin/IcuSource/layout/KernTable.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,49 @@
     1.4 +/*
     1.5 + * @(#)KernTable.h	1.1 04/10/13
     1.6 + *
     1.7 + * (C) Copyright IBM Corp. 2004-2005 - All Rights Reserved
     1.8 + *
     1.9 + */
    1.10 +
    1.11 +#ifndef __KERNTABLE_H
    1.12 +#define __KERNTABLE_H
    1.13 +
    1.14 +#ifndef __LETYPES_H
    1.15 +#include "LETypes.h"
    1.16 +#endif
    1.17 +
    1.18 +#include "LETypes.h"
    1.19 +#include "LEFontInstance.h"
    1.20 +#include "LEGlyphStorage.h"
    1.21 +
    1.22 +#include <stdio.h>
    1.23 +
    1.24 +U_NAMESPACE_BEGIN
    1.25 +struct PairInfo;
    1.26 +
    1.27 +/**
    1.28 + * Windows type 0 kerning table support only for now.
    1.29 + */
    1.30 +class U_LAYOUT_API KernTable
    1.31 +{
    1.32 + private:
    1.33 +  le_uint16 coverage;
    1.34 +  le_uint16 nPairs;
    1.35 +  const PairInfo* pairs;
    1.36 +  const LEFontInstance* font;
    1.37 +  le_uint16 searchRange;
    1.38 +  le_uint16 entrySelector;
    1.39 +  le_uint16 rangeShift;
    1.40 +
    1.41 + public:
    1.42 +  KernTable(const LEFontInstance* font, const void* tableData);
    1.43 +
    1.44 +  /*
    1.45 +   * Process the glyph positions.
    1.46 +   */
    1.47 +  void process(LEGlyphStorage& storage);
    1.48 +};
    1.49 +
    1.50 +U_NAMESPACE_END
    1.51 +
    1.52 +#endif