d3cba0ed30
This commit adds two fallback scripts (`latb', `latp') and implements support for the no-base character ranges introduced in the previous commit. * src/autofit/aftypes.h (AF_ScriptClassRec): Add `script_uni_nobase_ranges' field. (AF_DEFINE_SCRIPT_CLASS): Updated. * src/autofit/afscript.h, src/autofit/afstyles.h: Add `latb' and `latp' fallback scripts. * src/autofit/afblue.dat: Add blue zones for Latin subscript and superscript fallback scripts. * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated. * src/autofit/afglobal.h (AF_NOBASE): New style flag for no-base characters. (AF_STYLE_MASK): Updated. * src/autofit/afglobal.c (SCRIPT): Updated. (af_face_globals_compute_style_coverage): Handle new style flag. * src/autofit/aflatin.c (af_latin_hints_apply): Handle new style flag. * src/autofit/afranges.h (SCRIPT): Use it to export no-base ranges.
48 lines
1.7 KiB
C
48 lines
1.7 KiB
C
/***************************************************************************/
|
|
/* */
|
|
/* afranges.h */
|
|
/* */
|
|
/* Auto-fitter Unicode script ranges (specification). */
|
|
/* */
|
|
/* Copyright 2013-2015 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 */
|
|
/* this file you indicate that you have read the license and */
|
|
/* understand and accept it fully. */
|
|
/* */
|
|
/***************************************************************************/
|
|
|
|
|
|
#ifndef __AFRANGES_H__
|
|
#define __AFRANGES_H__
|
|
|
|
|
|
#include "aftypes.h"
|
|
|
|
|
|
FT_BEGIN_HEADER
|
|
|
|
#undef SCRIPT
|
|
#define SCRIPT( s, S, d, h, sc1, sc2, sc3 ) \
|
|
extern const AF_Script_UniRangeRec af_ ## s ## _uniranges[];
|
|
|
|
#include "afscript.h"
|
|
|
|
#undef SCRIPT
|
|
#define SCRIPT( s, S, d, h, sc1, sc2, sc3 ) \
|
|
extern const AF_Script_UniRangeRec af_ ## s ## _nobase_uniranges[];
|
|
|
|
#include "afscript.h"
|
|
|
|
/* */
|
|
|
|
FT_END_HEADER
|
|
|
|
#endif /* __AFRANGES_H__ */
|
|
|
|
|
|
/* END */
|