/**************************************************************************** * * aflatin.h * * Auto-fitter hinting routines for latin writing system * (specification). * * Copyright (C) 2003-2023 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 AFLATIN_H_ #define AFLATIN_H_ #include "afhints.h" FT_BEGIN_HEADER /* the `latin' writing system */ AF_DECLARE_WRITING_SYSTEM_CLASS( af_latin_writing_system_class ) /* constants are given with units_per_em == 2048 in mind */ #define AF_LATIN_CONSTANT( metrics, c ) … /*************************************************************************/ /*************************************************************************/ /***** *****/ /***** L A T I N G L O B A L M E T R I C S *****/ /***** *****/ /*************************************************************************/ /*************************************************************************/ /* * The following declarations could be embedded in the file `aflatin.c'; * they have been made semi-public to allow alternate writing system * hinters to re-use some of them. */ #define AF_LATIN_IS_TOP_BLUE( b ) … #define AF_LATIN_IS_SUB_TOP_BLUE( b ) … #define AF_LATIN_IS_NEUTRAL_BLUE( b ) … #define AF_LATIN_IS_X_HEIGHT_BLUE( b ) … #define AF_LATIN_IS_LONG_BLUE( b ) … #define AF_LATIN_MAX_WIDTHS … #define AF_LATIN_BLUE_ACTIVE … #define AF_LATIN_BLUE_TOP … #define AF_LATIN_BLUE_SUB_TOP … /* blue zone */ #define AF_LATIN_BLUE_NEUTRAL … #define AF_LATIN_BLUE_ADJUSTMENT … /* optimization */ AF_LatinBlue; AF_LatinAxis; AF_LatinMetrics; FT_LOCAL( FT_Error ) af_latin_metrics_init( AF_StyleMetrics metrics, FT_Face face ); FT_LOCAL( void ) af_latin_metrics_scale( AF_StyleMetrics metrics, AF_Scaler scaler ); FT_LOCAL( void ) af_latin_metrics_init_widths( AF_LatinMetrics metrics, FT_Face face ); FT_LOCAL( void ) af_latin_metrics_check_digits( AF_LatinMetrics metrics, FT_Face face ); /*************************************************************************/ /*************************************************************************/ /***** *****/ /***** L A T I N G L Y P H A N A L Y S I S *****/ /***** *****/ /*************************************************************************/ /*************************************************************************/ #define AF_LATIN_HINTS_HORZ_SNAP … #define AF_LATIN_HINTS_VERT_SNAP … #define AF_LATIN_HINTS_STEM_ADJUST … /* adjustment */ #define AF_LATIN_HINTS_MONO … #define AF_LATIN_HINTS_DO_HORZ_SNAP( h ) … #define AF_LATIN_HINTS_DO_VERT_SNAP( h ) … #define AF_LATIN_HINTS_DO_STEM_ADJUST( h ) … #define AF_LATIN_HINTS_DO_MONO( h ) … /* * The next functions shouldn't normally be exported. However, other * writing systems might like to use these functions as-is. */ FT_LOCAL( FT_Error ) af_latin_hints_compute_segments( AF_GlyphHints hints, AF_Dimension dim ); FT_LOCAL( void ) af_latin_hints_link_segments( AF_GlyphHints hints, FT_UInt width_count, AF_WidthRec* widths, AF_Dimension dim ); FT_LOCAL( FT_Error ) af_latin_hints_compute_edges( AF_GlyphHints hints, AF_Dimension dim ); FT_LOCAL( FT_Error ) af_latin_hints_detect_features( AF_GlyphHints hints, FT_UInt width_count, AF_WidthRec* widths, AF_Dimension dim ); /* */ FT_END_HEADER #endif /* AFLATIN_H_ */ /* END */