4cdb45c01e
patch. You need to #define AF_MOD_CJK in afcjk.c to enable it. * src/autofit/afglobal.c, src/autofit/afcjk.h, src/autofit/afcjk.c, src/autofit/rules.mk, src/autofit/autofit.c, src/autofit/aftypes.h: Add CJK module based on akito's autohint patch. * src/autofit/afhints.h (AF_SegmentRec): New field `len' for the overlap length of the segments. (AF_SEGMENT_LEN, AF_SEGMENT_DIST): New macros. * src/autofit/aflatin.h (af_latin_metrics_init_widths), src/autofit/aflatin.c (af_latin_metrics_init_widths): Made `FT_LOCAL'. Use the character given by the caller. (af_latin_metrics_init_widths, af_latin_hints_link_segments): Scale the thresholds. * src/autofit/afloader.c (af_loader_load_g): Respect AF_SCALER_FLAG_NO_ADVANCE.
42 lines
1.5 KiB
C
42 lines
1.5 KiB
C
/***************************************************************************/
|
|
/* */
|
|
/* afcjk.h */
|
|
/* */
|
|
/* Auto-fitter hinting routines for CJK script (specification). */
|
|
/* */
|
|
/* Copyright 2006 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 __AFCJK_H__
|
|
#define __AFCJK_H__
|
|
|
|
#include "afhints.h"
|
|
|
|
|
|
FT_BEGIN_HEADER
|
|
|
|
|
|
/* the CJK-specific script class */
|
|
|
|
FT_CALLBACK_TABLE const AF_ScriptClassRec
|
|
af_cjk_script_class;
|
|
|
|
|
|
/* */
|
|
|
|
FT_END_HEADER
|
|
|
|
#endif /* __AFCJK_H__ */
|
|
|
|
|
|
/* END */
|