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

Side by Side Diff: third_party/freetype/src/base/ftfntfmt.c

Issue 1413673003: Update bundled freetype to 2.6.1 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: DEPS for corpus Created 5 years, 1 month 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
« no previous file with comments | « third_party/freetype/src/base/ftdebug.c ('k') | third_party/freetype/src/base/ftfstype.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /***************************************************************************/ 1 /***************************************************************************/
2 /* */ 2 /* */
3 /* ftxf86.c */ 3 /* ftfntfmt.c */
4 /* */ 4 /* */
5 /* FreeType utility file for X11 support (body). */ 5 /* FreeType utility file for font formats (body). */
6 /* */ 6 /* */
7 /* Copyright 2002, 2003, 2004 by */ 7 /* Copyright 2002-2015 by */
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
9 /* */ 9 /* */
10 /* This file is part of the FreeType project, and may only be used, */ 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 */ 11 /* modified, and distributed under the terms of the FreeType project */
12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
13 /* this file you indicate that you have read the license and */ 13 /* this file you indicate that you have read the license and */
14 /* understand and accept it fully. */ 14 /* understand and accept it fully. */
15 /* */ 15 /* */
16 /***************************************************************************/ 16 /***************************************************************************/
17 17
18 18
19 #include <ft2build.h> 19 #include <ft2build.h>
20 #include FT_XFREE86_H 20 #include FT_FONT_FORMATS_H
21 #include FT_INTERNAL_OBJECTS_H 21 #include FT_INTERNAL_OBJECTS_H
22 #include FT_SERVICE_XFREE86_NAME_H 22 #include FT_SERVICE_FONT_FORMAT_H
23 23
24 24
25 /* documentation is in ftxf86.h */ 25 /* documentation is in ftfntfmt.h */
26
27 FT_EXPORT_DEF( const char* )
28 FT_Get_Font_Format( FT_Face face )
29 {
30 const char* result = NULL;
31
32
33 if ( face )
34 FT_FACE_FIND_SERVICE( face, result, FONT_FORMAT );
35
36 return result;
37 }
38
39
40 /* deprecated function name; retained for ABI compatibility */
26 41
27 FT_EXPORT_DEF( const char* ) 42 FT_EXPORT_DEF( const char* )
28 FT_Get_X11_Font_Format( FT_Face face ) 43 FT_Get_X11_Font_Format( FT_Face face )
29 { 44 {
30 const char* result = NULL; 45 const char* result = NULL;
31 46
32 47
33 if ( face ) 48 if ( face )
34 FT_FACE_FIND_SERVICE( face, result, XF86_NAME ); 49 FT_FACE_FIND_SERVICE( face, result, FONT_FORMAT );
35 50
36 return result; 51 return result;
37 } 52 }
38 53
39 54
40 /* END */ 55 /* END */
OLDNEW
« no previous file with comments | « third_party/freetype/src/base/ftdebug.c ('k') | third_party/freetype/src/base/ftfstype.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698