1
/***************************************************************************/
5
/* The FreeType compatibility functions (body). */
7
/* Copyright 2002 by */
8
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
10
/* This file is part of the FreeType project, and may only be used, */
11
/* modified, and distributed under the terms of the FreeType project */
12
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */
13
/* this file you indicate that you have read the license and */
14
/* understand and accept it fully. */
16
/***************************************************************************/
22
#include FT_INTERNAL_OBJECTS_H
23
#include FT_INTERNAL_DEBUG_H
24
#include FT_INTERNAL_STREAM_H
25
#include FT_TRUETYPE_TABLES_H
29
/*************************************************************************/
30
/*************************************************************************/
31
/*************************************************************************/
34
/**** C O M P A T I B I L I T Y ****/
37
/*************************************************************************/
38
/*************************************************************************/
39
/*************************************************************************/
41
/* backwards compatibility API */
44
FT_New_Memory_Stream( FT_Library library,
51
FT_Stream_OpenMemory( stream, base, size );
55
FT_BASE_DEF( FT_Error )
56
FT_Seek_Stream( FT_Stream stream,
59
return FT_Stream_Seek( stream, pos );
63
FT_BASE_DEF( FT_Error )
64
FT_Skip_Stream( FT_Stream stream,
67
return FT_Stream_Skip( stream, distance );
71
FT_BASE_DEF( FT_Error )
72
FT_Read_Stream( FT_Stream stream,
76
return FT_Stream_Read( stream, buffer, count );
80
FT_BASE_DEF( FT_Error )
81
FT_Read_Stream_At( FT_Stream stream,
86
return FT_Stream_ReadAt( stream, pos, buffer, count );
90
FT_BASE_DEF( FT_Error )
91
FT_Extract_Frame( FT_Stream stream,
95
return FT_Stream_ExtractFrame( stream, count, pbytes );
100
FT_Release_Frame( FT_Stream stream,
103
FT_Stream_ReleaseFrame( stream, pbytes );
106
FT_BASE_DEF( FT_Error )
107
FT_Access_Frame( FT_Stream stream,
110
return FT_Stream_EnterFrame( stream, count );
115
FT_Forget_Frame( FT_Stream stream )
117
FT_Stream_ExitFrame( stream );