1999-12-17 00:11:37 +01:00
|
|
|
/***************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* ttgload.h */
|
|
|
|
/* */
|
|
|
|
/* TrueType Glyph Loader (specification). */
|
|
|
|
/* */
|
2000-06-12 21:36:41 +02:00
|
|
|
/* Copyright 1996-2000 by */
|
1999-12-17 00:11:37 +01:00
|
|
|
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
|
|
|
/* */
|
2000-06-12 21:36:41 +02:00
|
|
|
/* This file is part of the FreeType project, and may only be used, */
|
|
|
|
/* modified, and distributed under the terms of the FreeType project */
|
1999-12-17 00:11:37 +01:00
|
|
|
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */
|
|
|
|
/* this file you indicate that you have read the license and */
|
|
|
|
/* understand and accept it fully. */
|
|
|
|
/* */
|
|
|
|
/***************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef TTGLOAD_H
|
|
|
|
#define TTGLOAD_H
|
|
|
|
|
|
|
|
#include <ttobjs.h>
|
|
|
|
|
2000-02-02 13:16:19 +01:00
|
|
|
#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
|
|
|
|
#include <ttinterp.h>
|
|
|
|
#endif
|
|
|
|
|
1999-12-17 00:11:37 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2000-06-12 21:36:41 +02:00
|
|
|
typedef struct TT_Loader_
|
2000-02-02 13:16:19 +01:00
|
|
|
{
|
|
|
|
TT_Face face;
|
|
|
|
TT_Size size;
|
|
|
|
TT_GlyphSlot glyph;
|
|
|
|
|
|
|
|
TT_ULong load_flags;
|
2000-02-15 13:54:51 +01:00
|
|
|
TT_UInt glyph_index;
|
2000-02-02 13:16:19 +01:00
|
|
|
|
|
|
|
FT_Stream stream;
|
|
|
|
TT_Int byte_len;
|
|
|
|
TT_Int left_points;
|
|
|
|
TT_Int left_contours;
|
|
|
|
|
|
|
|
TT_BBox bbox;
|
|
|
|
TT_Int left_bearing;
|
|
|
|
TT_Int advance;
|
|
|
|
TT_Bool preserve_pps;
|
|
|
|
TT_Vector pp1;
|
|
|
|
TT_Vector pp2;
|
2000-05-17 01:44:38 +02:00
|
|
|
|
2000-02-02 13:16:19 +01:00
|
|
|
TT_ULong glyf_offset;
|
2000-05-17 01:44:38 +02:00
|
|
|
|
2000-02-02 13:16:19 +01:00
|
|
|
/* the zone where we load our glyphs */
|
2000-02-21 17:01:33 +01:00
|
|
|
FT_GlyphZone base;
|
|
|
|
FT_GlyphZone zone;
|
2000-05-17 01:44:38 +02:00
|
|
|
|
2000-02-02 13:16:19 +01:00
|
|
|
#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
|
|
|
|
TT_ExecContext exec;
|
|
|
|
TT_Byte* instructions;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
} TT_Loader;
|
|
|
|
|
1999-12-17 00:11:37 +01:00
|
|
|
|
|
|
|
LOCAL_DEF
|
|
|
|
void TT_Get_Metrics( TT_HoriHeader* header,
|
2000-02-02 13:16:19 +01:00
|
|
|
TT_UInt index,
|
1999-12-17 00:11:37 +01:00
|
|
|
TT_Short* bearing,
|
|
|
|
TT_UShort* advance );
|
|
|
|
|
|
|
|
LOCAL_DEF
|
|
|
|
TT_Error TT_Load_Glyph( TT_Size size,
|
|
|
|
TT_GlyphSlot glyph,
|
|
|
|
TT_UShort glyph_index,
|
|
|
|
TT_UInt load_flags );
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* TTGLOAD_H */
|
|
|
|
|
|
|
|
|
|
|
|
/* END */
|