00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #include <ft2build.h>
00020 #include FT_LIST_H
00021 #include FT_OUTLINE_H
00022 #include FT_INTERNAL_OBJECTS_H
00023 #include FT_INTERNAL_DEBUG_H
00024 #include FT_INTERNAL_STREAM_H
00025 #include FT_TRUETYPE_TABLES_H
00026 #include FT_OUTLINE_H
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 FT_BASE_DEF( void )
00044 FT_New_Memory_Stream( FT_Library library,
00045 FT_Byte* base,
00046 FT_ULong size,
00047 FT_Stream stream )
00048 {
00049 FT_UNUSED( library );
00050
00051 FT_Stream_OpenMemory( stream, base, size );
00052 }
00053
00054
00055 FT_BASE_DEF( FT_Error )
00056 FT_Seek_Stream( FT_Stream stream,
00057 FT_ULong pos )
00058 {
00059 return FT_Stream_Seek( stream, pos );
00060 }
00061
00062
00063 FT_BASE_DEF( FT_Error )
00064 FT_Skip_Stream( FT_Stream stream,
00065 FT_Long distance )
00066 {
00067 return FT_Stream_Skip( stream, distance );
00068 }
00069
00070
00071 FT_BASE_DEF( FT_Error )
00072 FT_Read_Stream( FT_Stream stream,
00073 FT_Byte* buffer,
00074 FT_ULong count )
00075 {
00076 return FT_Stream_Read( stream, buffer, count );
00077 }
00078
00079
00080 FT_BASE_DEF( FT_Error )
00081 FT_Read_Stream_At( FT_Stream stream,
00082 FT_ULong pos,
00083 FT_Byte* buffer,
00084 FT_ULong count )
00085 {
00086 return FT_Stream_ReadAt( stream, pos, buffer, count );
00087 }
00088
00089
00090 FT_BASE_DEF( FT_Error )
00091 FT_Extract_Frame( FT_Stream stream,
00092 FT_ULong count,
00093 FT_Byte** pbytes )
00094 {
00095 return FT_Stream_ExtractFrame( stream, count, pbytes );
00096 }
00097
00098
00099 FT_BASE_DEF( void )
00100 FT_Release_Frame( FT_Stream stream,
00101 FT_Byte** pbytes )
00102 {
00103 FT_Stream_ReleaseFrame( stream, pbytes );
00104 }
00105
00106 FT_BASE_DEF( FT_Error )
00107 FT_Access_Frame( FT_Stream stream,
00108 FT_ULong count )
00109 {
00110 return FT_Stream_EnterFrame( stream, count );
00111 }
00112
00113
00114 FT_BASE_DEF( void )
00115 FT_Forget_Frame( FT_Stream stream )
00116 {
00117 FT_Stream_ExitFrame( stream );
00118 }
00119
00120
00121