2008-01-15 23:46:32 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 1998-2004 David Turner and Werner Lemberg
|
|
|
|
* Copyright (C) 2006 Behdad Esfahbod
|
2006-03-31 14:28:09 +02:00
|
|
|
*
|
|
|
|
* This is part of HarfBuzz, an OpenType Layout engine library.
|
|
|
|
*
|
2008-01-15 23:46:32 +01:00
|
|
|
* Permission is hereby granted, without written agreement and without
|
|
|
|
* license or royalty fees, to use, copy, modify, and distribute this
|
|
|
|
* software and its documentation for any purpose, provided that the
|
|
|
|
* above copyright notice and the following two paragraphs appear in
|
|
|
|
* all copies of this software.
|
2006-03-31 14:28:09 +02:00
|
|
|
*
|
2008-01-15 23:46:32 +01:00
|
|
|
* IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
|
|
|
|
* DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
|
|
|
|
* ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
|
|
|
|
* IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
|
|
|
* DAMAGE.
|
|
|
|
*
|
|
|
|
* THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
|
|
|
|
* BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
|
|
|
|
* ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
|
|
|
|
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
|
|
|
|
*/
|
|
|
|
|
2006-03-31 14:28:09 +02:00
|
|
|
#ifndef HARFBUZZ_GDEF_PRIVATE_H
|
|
|
|
#define HARFBUZZ_GDEF_PRIVATE_H
|
|
|
|
|
2007-10-11 10:30:50 +02:00
|
|
|
#include "harfbuzz-impl.h"
|
2007-11-07 09:06:01 +01:00
|
|
|
#include "harfbuzz-stream-private.h"
|
|
|
|
#include "harfbuzz-buffer-private.h"
|
2006-03-31 14:28:09 +02:00
|
|
|
#include "harfbuzz-gdef.h"
|
|
|
|
|
2007-10-25 00:44:47 +02:00
|
|
|
HB_BEGIN_HEADER
|
2006-03-31 14:28:09 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* Attachment related structures */
|
|
|
|
|
|
|
|
struct HB_AttachPoint_
|
|
|
|
{
|
2007-10-25 00:44:47 +02:00
|
|
|
HB_UShort PointCount; /* size of the PointIndex array */
|
|
|
|
HB_UShort* PointIndex; /* array of contour points */
|
2006-03-31 14:28:09 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Ligature Caret related structures */
|
|
|
|
|
|
|
|
struct HB_CaretValueFormat1_
|
|
|
|
{
|
2007-10-25 00:44:47 +02:00
|
|
|
HB_Short Coordinate; /* x or y value (in design units) */
|
2006-03-31 14:28:09 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct HB_CaretValueFormat1_ HB_CaretValueFormat1;
|
|
|
|
|
|
|
|
|
|
|
|
struct HB_CaretValueFormat2_
|
|
|
|
{
|
2007-10-25 00:44:47 +02:00
|
|
|
HB_UShort CaretValuePoint; /* contour point index on glyph */
|
2006-03-31 14:28:09 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct HB_CaretValueFormat2_ HB_CaretValueFormat2;
|
|
|
|
|
|
|
|
|
|
|
|
struct HB_CaretValueFormat3_
|
|
|
|
{
|
2007-10-25 00:44:47 +02:00
|
|
|
HB_Short Coordinate; /* x or y value (in design units) */
|
2006-03-31 14:28:09 +02:00
|
|
|
HB_Device Device; /* Device table for x or y value */
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct HB_CaretValueFormat3_ HB_CaretValueFormat3;
|
|
|
|
|
|
|
|
|
|
|
|
struct HB_CaretValueFormat4_
|
|
|
|
{
|
2007-10-25 00:44:47 +02:00
|
|
|
HB_UShort IdCaretValue; /* metric ID */
|
2006-03-31 14:28:09 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct HB_CaretValueFormat4_ HB_CaretValueFormat4;
|
|
|
|
|
|
|
|
|
|
|
|
struct HB_CaretValue_
|
|
|
|
{
|
2007-10-25 00:44:47 +02:00
|
|
|
HB_UShort CaretValueFormat; /* 1, 2, 3, or 4 */
|
2006-03-31 14:28:09 +02:00
|
|
|
|
|
|
|
union
|
|
|
|
{
|
|
|
|
HB_CaretValueFormat1 cvf1;
|
|
|
|
HB_CaretValueFormat2 cvf2;
|
|
|
|
HB_CaretValueFormat3 cvf3;
|
|
|
|
HB_CaretValueFormat4 cvf4;
|
|
|
|
} cvf;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct HB_CaretValue_ HB_CaretValue;
|
|
|
|
|
|
|
|
|
|
|
|
struct HB_LigGlyph_
|
|
|
|
{
|
2007-10-25 00:44:47 +02:00
|
|
|
HB_Bool loaded;
|
2006-03-31 14:28:09 +02:00
|
|
|
|
2007-10-25 00:44:47 +02:00
|
|
|
HB_UShort CaretCount; /* number of caret values */
|
2006-03-31 14:28:09 +02:00
|
|
|
HB_CaretValue* CaretValue; /* array of caret values */
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2007-10-11 10:30:50 +02:00
|
|
|
HB_INTERNAL HB_Error
|
|
|
|
_HB_GDEF_Add_Glyph_Property( HB_GDEFHeader* gdef,
|
2007-10-25 00:44:47 +02:00
|
|
|
HB_UShort glyphID,
|
2009-04-16 04:56:15 +02:00
|
|
|
HB_UShort properties );
|
2006-03-31 14:28:09 +02:00
|
|
|
|
2007-10-11 10:30:50 +02:00
|
|
|
HB_INTERNAL HB_Error
|
|
|
|
_HB_GDEF_Check_Property( HB_GDEFHeader* gdef,
|
|
|
|
HB_GlyphItem item,
|
2007-10-25 00:44:47 +02:00
|
|
|
HB_UShort flags,
|
2009-04-16 04:56:15 +02:00
|
|
|
HB_UShort* properties );
|
2006-03-31 14:28:09 +02:00
|
|
|
|
2007-11-07 09:06:01 +01:00
|
|
|
HB_INTERNAL HB_Error
|
|
|
|
_HB_GDEF_LoadMarkAttachClassDef_From_LookupFlags( HB_GDEFHeader* gdef,
|
|
|
|
HB_Stream input,
|
|
|
|
HB_Lookup* lo,
|
|
|
|
HB_UShort num_lookups );
|
|
|
|
|
2007-10-25 00:44:47 +02:00
|
|
|
HB_END_HEADER
|
2006-03-31 14:28:09 +02:00
|
|
|
|
|
|
|
#endif /* HARFBUZZ_GDEF_PRIVATE_H */
|