2005-06-05 01:04:30 +02:00
|
|
|
# FreeType 2 src/autofit Jamfile
|
2005-03-03 18:09:08 +01:00
|
|
|
#
|
2017-01-04 20:16:34 +01:00
|
|
|
# Copyright 2003-2017 by
|
2005-06-05 01:04:30 +02:00
|
|
|
# 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.
|
2005-03-03 18:09:08 +01:00
|
|
|
|
2004-02-01 17:59:06 +01:00
|
|
|
SubDir FT2_TOP src autofit ;
|
|
|
|
|
2004-01-16 10:51:00 +01:00
|
|
|
{
|
|
|
|
local _sources ;
|
|
|
|
|
2009-05-28 07:07:48 +02:00
|
|
|
# define FT2_AUTOFIT2 to enable experimental latin hinter replacement
|
2007-06-11 07:37:35 +02:00
|
|
|
if $(FT2_AUTOFIT2)
|
|
|
|
{
|
2015-06-21 19:12:12 +02:00
|
|
|
CCFLAGS += FT_OPTION_AUTOFIT2 ;
|
2007-06-11 07:37:35 +02:00
|
|
|
}
|
2004-01-16 10:51:00 +01:00
|
|
|
if $(FT2_MULTI)
|
|
|
|
{
|
2015-06-21 19:12:12 +02:00
|
|
|
_sources = afangles
|
|
|
|
afblue
|
|
|
|
afcjk
|
|
|
|
afdummy
|
|
|
|
afglobal
|
|
|
|
afhints
|
|
|
|
afindic
|
|
|
|
aflatin
|
|
|
|
afloader
|
|
|
|
afmodule
|
|
|
|
afpic
|
|
|
|
afranges
|
[autofit] Rewrite HarfBuzz interface to support character clusters.
Scripts like Khmer have blue zones that can't be directly
represented by Unicode characters. Instead, it is necessary to let
HarfBuzz convert character clusters into proper glyph representation
forms, then deriving the blue zone information from the resulting
glyphs.
* src/autofit/hbshim.c, src/autofit/hbshim.h: Replaced by...
* src/autofit/afshaper.c, src/autofit/afshaper.h: ... these two new
files, providing a new API to access HarfBuzz.
The new API manages a HarfBuzz buffer with `af_shaper_buf_create'
and `af_shaper_buf_destroy'. The buffer receives a UTF8 encoded
string with function `af_shaper_get_cluster', and the resulting
glyph data (indices, advance widths, vertical offsets) can be
iteratively accessed with function `af_shaper_get_elem'.
* src/autofit/afcjk.c (af_cjk_metrics_init_widths,
af_cjk_metrics_init_blues, af_cjk_metrics_check_digits): Updated.
* src/autofit/aflatin.c (af_latin_metrics_init_widths,
af_latin_metrics_init_blues, af_latin_metrics_check_digits):
Updated.
* include/freetype/internal/fttrace.h: s/afharfbuzz/afshaper/.
* src/autofit/afglobal.c: s/hbshim.h/afshaper.h/.
(af_face_globals_compute_style_coverage): Updated.
* src/autofit/afglocal.h: s/hbshim.h/afshaper.h/.
* src/autofit/autofit.c: s/hbshim.c/afshaper.c/.
* src/autofit/Jamfile, src/autofit/rules.mk (AUTOF_DRV_SRC):
Updated.
2015-12-06 18:52:41 +01:00
|
|
|
afshaper
|
2015-06-21 19:12:12 +02:00
|
|
|
afwarp
|
|
|
|
;
|
2007-06-11 07:37:35 +02:00
|
|
|
|
|
|
|
if $(FT2_AUTOFIT2)
|
|
|
|
{
|
|
|
|
_sources += aflatin2 ;
|
|
|
|
}
|
2004-01-16 10:51:00 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
_sources = autofit ;
|
|
|
|
}
|
|
|
|
|
|
|
|
Library $(FT2_LIB) : $(_sources).c ;
|
|
|
|
}
|
|
|
|
|
2005-03-03 18:09:08 +01:00
|
|
|
# end of src/autofit Jamfile
|