Index: third_party/freetype/src/type1/t1objs.c |
diff --git a/third_party/freetype/src/type1/t1objs.c b/third_party/freetype/src/type1/t1objs.c |
index e11770feefc7965a704e9b27912db6937d7796be..d921063eaa4af8b1976e452acabaa76aeb8008a7 100644 |
--- a/third_party/freetype/src/type1/t1objs.c |
+++ b/third_party/freetype/src/type1/t1objs.c |
@@ -4,7 +4,7 @@ |
/* */ |
/* Type 1 objects manager (body). */ |
/* */ |
-/* Copyright 1996-2009, 2011, 2013 by */ |
+/* Copyright 1996-2015 by */ |
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
/* */ |
/* This file is part of the FreeType project, and may only be used, */ |
@@ -86,7 +86,7 @@ |
if ( funcs ) |
funcs->destroy( (PSH_Globals)size->root.internal ); |
- size->root.internal = 0; |
+ size->root.internal = NULL; |
} |
} |
@@ -144,7 +144,7 @@ |
FT_LOCAL_DEF( void ) |
T1_GlyphSlot_Done( FT_GlyphSlot slot ) |
{ |
- slot->internal->glyph_hints = 0; |
+ slot->internal->glyph_hints = NULL; |
} |
@@ -224,7 +224,7 @@ |
} |
T1_Done_Blend( face ); |
- face->blend = 0; |
+ face->blend = NULL; |
#endif |
/* release font info strings */ |
@@ -345,7 +345,7 @@ |
goto Exit; |
/* check the face index */ |
- if ( face_index > 0 ) |
+ if ( ( face_index & 0xFFFF ) > 0 ) |
{ |
FT_ERROR(( "T1_Face_Init: invalid face index\n" )); |
error = FT_THROW( Invalid_Argument ); |
@@ -375,9 +375,6 @@ |
if ( face->blend ) |
root->face_flags |= FT_FACE_FLAG_MULTIPLE_MASTERS; |
- /* XXX: TODO -- add kerning with .afm support */ |
- |
- |
/* The following code to extract the family and the style is very */ |
/* simplistic and might get some things wrong. For a full-featured */ |
/* algorithm you might have a look at the whitepaper given at */ |
@@ -457,7 +454,7 @@ |
/* no embedded bitmap support */ |
root->num_fixed_sizes = 0; |
- root->available_sizes = 0; |
+ root->available_sizes = NULL; |
root->bbox.xMin = type1->font_bbox.xMin >> 16; |
root->bbox.yMin = type1->font_bbox.yMin >> 16; |