1 /***************************************************************************/ 2 /* */ 3 /* afblue.h */ 4 /* */ 5 /* Auto-fitter data for blue strings (specification). */ 6 /* */ 7 /* Copyright 2013-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 #ifndef AFBLUE_H_ 20 #define AFBLUE_H_ 21 22 23 FT_BEGIN_HEADER 24 25 26 /* an auxiliary macro to decode a UTF-8 character -- since we only use */ 27 /* hard-coded, self-converted data, no error checking is performed */ 28 #define GET_UTF8_CHAR( ch, p ) \ 29 do \ 30 { \ 31 ch = (unsigned char)*p++; \ 32 if ( ch >= 0x80 ) \ 33 { \ 34 FT_UInt len_; \ 35 \ 36 \ | 1 /**************************************************************************** 2 * 3 * afblue.h 4 * 5 * Auto-fitter data for blue strings (specification). 6 * 7 * Copyright (C) 2013-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 #ifndef AFBLUE_H_ 20 #define AFBLUE_H_ 21 22 23 FT_BEGIN_HEADER 24 25 26 /* an auxiliary macro to decode a UTF-8 character -- since we only use */ 27 /* hard-coded, self-converted data, no error checking is performed */ 28 #define GET_UTF8_CHAR( ch, p ) \ 29 do \ 30 { \ 31 ch = (unsigned char)*p++; \ 32 if ( ch >= 0x80 ) \ 33 { \ 34 FT_UInt len_; \ 35 \ 36 \ |