1 /***************************************************************************/ 2 /* */ 3 /* ftadvanc.c */ 4 /* */ 5 /* Quick computation of advance widths (body). */ 6 /* */ 7 /* Copyright 2008-2018 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 <ft2build.h> 20 #include FT_INTERNAL_DEBUG_H 21 22 #include FT_ADVANCES_H 23 #include FT_INTERNAL_OBJECTS_H 24 25 26 static FT_Error 27 _ft_face_scale_advances( FT_Face face, 28 FT_Fixed* advances, 29 FT_UInt count, 30 FT_Int32 flags ) 31 { 32 FT_Fixed scale; 33 FT_UInt nn; 34 35 36 if ( flags & FT_LOAD_NO_SCALE ) | 1 /**************************************************************************** 2 * 3 * ftadvanc.c 4 * 5 * Quick computation of advance widths (body). 6 * 7 * Copyright (C) 2008-2019 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 <ft2build.h> 20 #include FT_INTERNAL_DEBUG_H 21 22 #include FT_ADVANCES_H 23 #include FT_INTERNAL_OBJECTS_H 24 25 26 static FT_Error 27 _ft_face_scale_advances( FT_Face face, 28 FT_Fixed* advances, 29 FT_UInt count, 30 FT_Int32 flags ) 31 { 32 FT_Fixed scale; 33 FT_UInt nn; 34 35 36 if ( flags & FT_LOAD_NO_SCALE ) |