Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: core/src/fxge/fx_freetype/fxft2.5.01/src/base/ftapi.c

Issue 815103002: Update freetype to 2.5.4. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Adjust GYP and GN Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /***************************************************************************/
2 /* */
3 /* ftapi.c */
4 /* */
5 /* The FreeType compatibility functions (body). */
6 /* */
7 /* Copyright 2002 by */
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
9 /* */
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. */
15 /* */
16 /***************************************************************************/
17
18
19 #include "../../include/ft2build.h"
20 #include "../../include/freetype/ftlist.h"
21 #include "../../include/freetype/ftoutln.h"
22 #include "../../include/freetype/internal/ftobjs.h"
23 #include "../../include/freetype/internal/ftdebug.h"
24 #include "../../include/freetype/internal/ftstream.h"
25 #include "../../include/freetype/tttables.h"
26 #include "../../include/freetype/ftoutln.h"
27
28
29 /*************************************************************************/
30 /*************************************************************************/
31 /*************************************************************************/
32 /**** ****/
33 /**** ****/
34 /**** C O M P A T I B I L I T Y ****/
35 /**** ****/
36 /**** ****/
37 /*************************************************************************/
38 /*************************************************************************/
39 /*************************************************************************/
40
41 /* backwards compatibility API */
42
43 FT_BASE_DEF( void )
44 FT_New_Memory_Stream( FT_Library library,
45 FT_Byte* base,
46 FT_ULong size,
47 FT_Stream stream )
48 {
49 FT_UNUSED( library );
50
51 FT_Stream_OpenMemory( stream, base, size );
52 }
53
54
55 FT_BASE_DEF( FT_Error )
56 FT_Seek_Stream( FT_Stream stream,
57 FT_ULong pos )
58 {
59 return FT_Stream_Seek( stream, pos );
60 }
61
62
63 FT_BASE_DEF( FT_Error )
64 FT_Skip_Stream( FT_Stream stream,
65 FT_Long distance )
66 {
67 return FT_Stream_Skip( stream, distance );
68 }
69
70
71 FT_BASE_DEF( FT_Error )
72 FT_Read_Stream( FT_Stream stream,
73 FT_Byte* buffer,
74 FT_ULong count )
75 {
76 return FT_Stream_Read( stream, buffer, count );
77 }
78
79
80 FT_BASE_DEF( FT_Error )
81 FT_Read_Stream_At( FT_Stream stream,
82 FT_ULong pos,
83 FT_Byte* buffer,
84 FT_ULong count )
85 {
86 return FT_Stream_ReadAt( stream, pos, buffer, count );
87 }
88
89
90 FT_BASE_DEF( FT_Error )
91 FT_Extract_Frame( FT_Stream stream,
92 FT_ULong count,
93 FT_Byte** pbytes )
94 {
95 return FT_Stream_ExtractFrame( stream, count, pbytes );
96 }
97
98
99 FT_BASE_DEF( void )
100 FT_Release_Frame( FT_Stream stream,
101 FT_Byte** pbytes )
102 {
103 FT_Stream_ReleaseFrame( stream, pbytes );
104 }
105
106 FT_BASE_DEF( FT_Error )
107 FT_Access_Frame( FT_Stream stream,
108 FT_ULong count )
109 {
110 return FT_Stream_EnterFrame( stream, count );
111 }
112
113
114 FT_BASE_DEF( void )
115 FT_Forget_Frame( FT_Stream stream )
116 {
117 FT_Stream_ExitFrame( stream );
118 }
119
120
121 /* END */
OLDNEW
« no previous file with comments | « core/src/fxge/fx_freetype/fxft2.5.01/src/base/ftadvanc.c ('k') | core/src/fxge/fx_freetype/fxft2.5.01/src/base/ftbase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698