freetype2/src
Werner Lemberg 1924134710 Introduce `coverages'.
Coverages are the interface to the HarfBuzz library to access
OpenType features for handling glyphs not addressable by the cmap.

Right now, compilation of HarfBuzz is only added to the development
build.  A solution for standard build mode will be delayed until
HarfBuzz gets split into two libraries to avoid mutual dependencies
between FreeType and HarfBuzz.

Note that this is only a first step in handling coverages, basically
providing the framework only.  Code for handling selected OpenType
features (this is, actually using the data in `afcover.h') will
follow.

* devel/ftoption.h, include/config/ftoption.h
(FT_CONFIG_OPTION_USE_HARFBUZZ): New macro.

* src/autofit/hbshim.c, src/autofit/hbshim.h, src/autofit/afcover.h:
New files.

* src/autofit/afscript.h: Add HarfBuzz script name tags.

* src/autofit/afstyles.h: Add default coverage enumeration values.

* src/autofit/aftypes.h: Update use of `SCRIPT' and `STYLE' macros.
(AF_Coverage): New enumeration (generated by `afcover.h').
(AF_StyleClassRec): New member `coverage'.
(AF_DEFINE_STYLE_CLASS): Updated.

* include/internal/fttrace.h: Add `afharfbuzz' for tracing coverage
data.

* src/autofit/afglobal.h: Update use of `SCRIPT' and `STYLE' macros.
(AF_SCRIPT_FALLBACK): Renamed to ...
(AF_STYLE_FALLBACK): ... this.

* src/autofit/afglobal.c: Include `hbshim.c'.
Update use of `SCRIPT' and `STYLE' macros.
(af_face_globals_compute_style_coverage)
[FT_CONFIG_OPTION_USE_HARFBUZZ]: Call `af_get_coverage'.
Update.

* src/autofit/afmodule.h (AF_ModuleRec):
s/fallback_script/fallback_style/.

* src/autofit/afmodule.c (af_property_set): Adapt handling of
`fallback-script' property to set a fallback style.
(af_property_get, af_autofitter_init): Updated.

* src/autofit/afpic.c: Update use of `SCRIPT' and `STYLE' macros.

* src/autofit/afranges.h: Update use of `SCRIPT' macro.

* src/autofit/autofit.c [FT_CONFIG_OPTION_USE_HARFBUZZ]: Include
`hbshim.c'.

* src/autofit/rules.mk (AUTOF_DRV_SRC): Add `hbshim.c'.
(AUTOF_DRV_H): Add `afcover.h'.

* builds/freetype.mk (INCLUDE_FLAGS) [DEVEL_DIR]: Use pkg-config for
all libraries needed by FreeType.
2013-12-21 21:39:04 +01:00
..
autofit Introduce `coverages'. 2013-12-21 21:39:04 +01:00
base Fix PIC linking. 2013-12-21 08:14:25 +01:00
bdf [bdf, pcf] Refuse non-zero face_index. 2013-09-25 10:57:17 +09:00
bzip2 */*: Use FT_Err_Ok only. 2013-03-14 11:21:17 +01:00
cache Simplify header file hierarchy. 2013-11-13 08:55:46 +01:00
cff [cff] Fix for hints that touch. 2013-11-08 10:52:51 +01:00
cid Better tracing of loaded glyphs. 2013-08-26 12:55:48 +02:00
gxvalid Another round of cppcheck nitpicks. 2013-08-01 12:20:20 +02:00
gzip [gzip] New function `FT_Gzip_Uncompress'. 2013-08-29 17:53:24 +02:00
lzw Apply fixes for cppcheck nitpicks. 2013-06-04 10:30:48 +02:00
otvalid */*: Use FT_ERR_EQ, FT_ERR_NEQ, and FT_ERR where appropriate. 2013-03-14 17:50:49 +01:00
pcf [bdf, pcf] Refuse non-zero face_index. 2013-09-25 10:57:17 +09:00
pfr Better tracing of loaded glyphs. 2013-08-26 12:55:48 +02:00
psaux Next round of compiler fixes. 2013-06-06 09:16:38 +02:00
pshinter Another round of cppcheck nitpicks. 2013-08-01 12:20:20 +02:00
psnames Fix PIC linking. 2013-12-21 08:14:25 +01:00
raster Simplify header file hierarchy. 2013-11-13 08:55:46 +01:00
sfnt [sfnt] Fix handling of embedded bitmap strikes. 2013-12-04 06:18:56 +01:00
smooth Simplify header file hierarchy. 2013-11-13 08:55:46 +01:00
tools Simplify header file hierarchy. 2013-11-13 08:55:46 +01:00
truetype Fix Savannah bug #40975 (sort of). 2013-12-21 19:33:15 +01:00
type1 Better tracing of loaded glyphs. 2013-08-26 12:55:48 +02:00
type42 [bdf, pcf] Refuse non-zero face_index. 2013-09-25 10:57:17 +09:00
winfonts Better tracing of loaded glyphs. 2013-08-26 12:55:48 +02:00
Jamfile Simplify header file hierarchy. 2013-11-13 08:55:46 +01:00