< prev index next >

src/java.desktop/share/native/libfreetype/src/psaux/cffdecode.c

Print this page

        

*** 2,12 **** * * cffdecode.c * * PostScript CFF (Type 2) decoding routines (body). * ! * Copyright (C) 2017-2019 by * David Turner, Robert Wilhelm, and Werner Lemberg. * * This file is part of the FreeType project, and may only be used, * modified, and distributed under the terms of the FreeType project * license, LICENSE.TXT. By continuing to use, modify, or distribute --- 2,12 ---- * * cffdecode.c * * PostScript CFF (Type 2) decoding routines (body). * ! * Copyright (C) 2017-2020 by * David Turner, Robert Wilhelm, and Werner Lemberg. * * This file is part of the FreeType project, and may only be used, * modified, and distributed under the terms of the FreeType project * license, LICENSE.TXT. By continuing to use, modify, or distribute
*** 328,338 **** glyph_width = decoder->glyph_width; builder->left_bearing.x = 0; builder->left_bearing.y = 0; ! builder->pos_x = adx - asb; builder->pos_y = ady; /* Now load `achar' on top of the base outline. */ error = decoder->get_glyph_callback( face, (FT_UInt)achar_index, &charstring, &charstring_len ); --- 328,338 ---- glyph_width = decoder->glyph_width; builder->left_bearing.x = 0; builder->left_bearing.y = 0; ! builder->pos_x = SUB_LONG( adx, asb ); builder->pos_y = ady; /* Now load `achar' on top of the base outline. */ error = decoder->get_glyph_callback( face, (FT_UInt)achar_index, &charstring, &charstring_len );
*** 528,537 **** --- 528,540 ---- hinter = (T2_Hints_Funcs)builder->hints_funcs; builder->path_begun = 0; + if ( !charstring_base ) + return FT_Err_Ok; + zone->base = charstring_base; limit = zone->limit = charstring_base + charstring_len; ip = zone->cursor = zone->base; error = FT_Err_Ok;
< prev index next >