src/3rdparty/harfbuzz/src/ftglue.h File Reference

#include <ft2build.h>
#include <FT_FREETYPE_H>

Include dependency graph for ftglue.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define SET_ERR(c)   ( (error = (c)) != 0 )
#define FTGLUE_API(x)   extern x
#define FTGLUE_APIDEF(x)   x
#define FILE_Pos()   _hb_ftglue_stream_pos( stream )
#define FILE_Seek(pos)   SET_ERR( _hb_ftglue_stream_seek( stream, pos ) )
#define ACCESS_Frame(size)   SET_ERR( _hb_ftglue_stream_frame_enter( stream, size ) )
#define FORGET_Frame()   _hb_ftglue_stream_frame_exit( stream )
#define GET_Byte()   (*stream->cursor++)
#define GET_Short()
#define GET_Long()
#define GET_Char()   ((FT_Char)GET_Byte())
#define GET_UShort()   ((FT_UShort)GET_Short())
#define GET_ULong()   ((FT_ULong)GET_Long())
#define GET_Tag4()   GET_ULong()
#define ALLOC(_ptr, _size)   ( (_ptr) = _hb_ftglue_alloc( memory, _size, &error ), error != 0 )
#define REALLOC(_ptr, _oldsz, _newsz)   ( (_ptr) = _hb_ftglue_realloc( memory, (_ptr), (_oldsz), (_newsz), &error ), error != 0 )
#define FREE(_ptr)
#define ALLOC_ARRAY(_ptr, _count, _type)   ALLOC(_ptr,(_count)*sizeof(_type))
#define REALLOC_ARRAY(_ptr, _oldcnt, _newcnt, _type)   REALLOC(_ptr,(_oldcnt)*sizeof(_type),(_newcnt)*sizeof(_type))
#define MEM_Copy(dest, source, count)   memcpy( (char*)(dest), (const char*)(source), (size_t)(count) )

Functions

 _hb_ftglue_stream_pos (FT_Stream stream)
 _hb_ftglue_stream_seek (FT_Stream stream, FT_Long pos)
 _hb_ftglue_stream_frame_enter (FT_Stream stream, FT_ULong size)
 _hb_ftglue_stream_frame_exit (FT_Stream stream)
 _hb_ftglue_face_goto_table (FT_Face face, FT_ULong tag, FT_Stream stream)
 _hb_ftglue_alloc (FT_Memory memory, FT_ULong size, FT_Error *perror_)
 _hb_ftglue_realloc (FT_Memory memory, FT_Pointer block, FT_ULong old_size, FT_ULong new_size, FT_Error *perror_)
 _hb_ftglue_free (FT_Memory memory, FT_Pointer block)


Define Documentation

#define ACCESS_Frame ( size   )     SET_ERR( _hb_ftglue_stream_frame_enter( stream, size ) )

Definition at line 67 of file ftglue.h.

#define ALLOC ( _ptr,
_size   )     ( (_ptr) = _hb_ftglue_alloc( memory, _size, &error ), error != 0 )

Definition at line 108 of file ftglue.h.

#define ALLOC_ARRAY ( _ptr,
_count,
_type   )     ALLOC(_ptr,(_count)*sizeof(_type))

Definition at line 123 of file ftglue.h.

 
#define FILE_Pos (  )     _hb_ftglue_stream_pos( stream )

Definition at line 65 of file ftglue.h.

#define FILE_Seek ( pos   )     SET_ERR( _hb_ftglue_stream_seek( stream, pos ) )

Definition at line 66 of file ftglue.h.

 
#define FORGET_Frame (  )     _hb_ftglue_stream_frame_exit( stream )

Definition at line 68 of file ftglue.h.

#define FREE ( _ptr   ) 

Value:

do {                                 \
    if ( (_ptr) )                      \
    {                                  \
      _hb_ftglue_free( memory, _ptr );     \
      _ptr = NULL;                     \
    }                                  \
  } while (0)

Definition at line 114 of file ftglue.h.

Referenced by QOpenType::selectScript().

#define FTGLUE_API (  )     extern x

Definition at line 57 of file ftglue.h.

#define FTGLUE_APIDEF (  )     x

Definition at line 61 of file ftglue.h.

 
#define GET_Byte (  )     (*stream->cursor++)

Definition at line 70 of file ftglue.h.

 
#define GET_Char (  )     ((FT_Char)GET_Byte())

Definition at line 83 of file ftglue.h.

 
#define GET_Long (  ) 

Value:

(stream->cursor += 4, (FT_Long)( \
        (*(((FT_Byte*)stream->cursor)-4) << 24) | \
        (*(((FT_Byte*)stream->cursor)-3) << 16) | \
        (*(((FT_Byte*)stream->cursor)-2) << 8) | \
         *(((FT_Byte*)stream->cursor)-1) \
       ))

Definition at line 75 of file ftglue.h.

 
#define GET_Short (  ) 

Value:

(stream->cursor += 2, (FT_Short)( \
        (*(((FT_Byte*)stream->cursor)-2) << 8) | \
         *(((FT_Byte*)stream->cursor)-1) \
       ))

Definition at line 71 of file ftglue.h.

 
#define GET_Tag4 (  )     GET_ULong()

Definition at line 86 of file ftglue.h.

 
#define GET_ULong (  )     ((FT_ULong)GET_Long())

Definition at line 85 of file ftglue.h.

 
#define GET_UShort (  )     ((FT_UShort)GET_Short())

Definition at line 84 of file ftglue.h.

#define MEM_Copy ( dest,
source,
count   )     memcpy( (char*)(dest), (const char*)(source), (size_t)(count) )

Definition at line 129 of file ftglue.h.

#define REALLOC ( _ptr,
_oldsz,
_newsz   )     ( (_ptr) = _hb_ftglue_realloc( memory, (_ptr), (_oldsz), (_newsz), &error ), error != 0 )

Definition at line 111 of file ftglue.h.

#define REALLOC_ARRAY ( _ptr,
_oldcnt,
_newcnt,
_type   )     REALLOC(_ptr,(_oldcnt)*sizeof(_type),(_newcnt)*sizeof(_type))

Definition at line 126 of file ftglue.h.

#define SET_ERR (  )     ( (error = (c)) != 0 )

Definition at line 54 of file ftglue.h.


Function Documentation

_hb_ftglue_alloc ( FT_Memory  memory,
FT_ULong  size,
FT_Error perror_ 
)

_hb_ftglue_face_goto_table ( FT_Face  face,
FT_ULong  tag,
FT_Stream  stream 
)

_hb_ftglue_free ( FT_Memory  memory,
FT_Pointer  block 
)

_hb_ftglue_realloc ( FT_Memory  memory,
FT_Pointer  block,
FT_ULong  old_size,
FT_ULong  new_size,
FT_Error perror_ 
)

_hb_ftglue_stream_frame_enter ( FT_Stream  stream,
FT_ULong  size 
)

_hb_ftglue_stream_frame_exit ( FT_Stream  stream  ) 

_hb_ftglue_stream_pos ( FT_Stream  stream  ) 

_hb_ftglue_stream_seek ( FT_Stream  stream,
FT_Long  pos 
)


Generated on Thu Mar 15 12:13:11 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1