freetype/src/autofit
Werner Lemberg 72f5ff5bbb [autofit] Introduce `writing systems'.
This patch adds a new top level to the auto-hinter's script class
hierarchy.  It defines `writing systems' which can contain multiple
scripts.

For example, the `latin' writing system (in file `aflatin.c') is
able to support scripts like Latin, Cyrillic, Armenian, etc., which
can be handled similarly.

Scripts are now named using four-letter OpenType tags.

* src/autofit/aftypes.h (AF_ScriptClassRec): Move relevant members
to...
(AF_WritingSystemClassRec): This new structure.  It holds pointers
to functions which can be shared among related scripts.
(AF_WritingSystem): New enumeration.
(AF_Script): Revised values using four-letter tags.
(AF_DEFINE_WRITING_SYSTEM_CLASS): New macro.
(AF_DEFINE_SCRIPT_CLASS): Updated.

* src/autofit/afglobal.c (af_writing_system_classes): New global,
constant array.
(af_script_classes): Updated.
(af_face_globals_free): Updated.
Remove assertion.
(af_face_globals_get_metrics): Updated.

* src/autofit/afglobal.h (AF_SCRIPT_FALLBACK)
[!AF_CONFIG_OPTION_CJK]: Handle this case.

* src/autofit/afloader.c (af_loader_load_g, af_loader_load_glyph):
Updated.

* src/autofit/afpic.c (autofit_module_class_pic_init): Updated;
initialize structures for both writing systems and scripts.
* src/autofit/afpic.h: Updated.
(AF_WRITING_SYSTEM_CLASSES_GET): New macro.

* src/autofit/afcjk.c (af_cjk_writing_system_class): New writing
system.
(af_cjk_uniranges): Renamed to...
(af_hani_uniranges): This.
(af_cjk_script_class): Reduced and renamed to...
(af_hani_script_class): This.
* src/autofit/afcjk.h: Updated.

* src/autofit/afdummy.c (af_dummy_writing_system_class): New writing
system.
(af_dummy_script_class): Reduced and renamed to...
(af_dflt_script_class): This.
* src/autofit/afdummy.h: Updated.

* src/autofit/afindic.c (af_indic_writing_system_class): New writing
system.
(af_indic_uniranges): Renamed to...
(af_deva_uniranges): This.
(af_indic_script_class): Reduced and renamed to...
(af_deva_script_class): This.
* src/autofit/afcjk.h: Updated.

* src/autofit/aflatin.c (af_latin_writing_system_class): New writing
system.
(af_latin_uniranges): Renamed to...
(af_latn_uniranges): This.
(af_latin_script_class): Reduced and renamed to...
(af_latn_script_class): This.
* src/autofit/aflatin.h: Updated.

* src/autofit/aflatin2.c (af_latin2_writing_system_class): New
writing system.
(af_latin2_uniranges): Renamed to...
(af_ltn2_uniranges): This.
Synchronize ranges with `latin'.
(af_latin2_script_class): Reduced and renamed to...
(af_ltn2_script_class): This.
* src/autofit/aflatin2.h: Updated.
2013-07-31 22:57:01 +02:00
..
afangles.c [autofit] Quantize stem widths. 2012-07-03 11:54:12 +02:00
afangles.h * src/autofit/afdummy.c, src/autofit/afdummy.h 2005-03-02 11:24:23 +00:00
afcjk.c [autofit] Introduce `writing systems'. 2013-07-31 22:57:01 +02:00
afcjk.h [autofit] Introduce `writing systems'. 2013-07-31 22:57:01 +02:00
afdummy.c [autofit] Introduce `writing systems'. 2013-07-31 22:57:01 +02:00
afdummy.h [autofit] Introduce `writing systems'. 2013-07-31 22:57:01 +02:00
aferrors.h Prepare source code for amalgamation. 2012-03-08 06:04:03 +01:00
afglobal.c [autofit] Introduce `writing systems'. 2013-07-31 22:57:01 +02:00
afglobal.h [autofit] Introduce `writing systems'. 2013-07-31 22:57:01 +02:00
afhints.c Whitespace. 2013-03-23 14:25:43 +01:00
afhints.h [autofit] Do some code cleanup. 2012-07-06 19:38:44 +02:00
afindic.c [autofit] Introduce `writing systems'. 2013-07-31 22:57:01 +02:00
afindic.h [autofit] Introduce `writing systems'. 2013-07-31 22:57:01 +02:00
aflatin2.c [autofit] Introduce `writing systems'. 2013-07-31 22:57:01 +02:00
aflatin2.h [autofit] Introduce `writing systems'. 2013-07-31 22:57:01 +02:00
aflatin.c [autofit] Introduce `writing systems'. 2013-07-31 22:57:01 +02:00
aflatin.h [autofit] Introduce `writing systems'. 2013-07-31 22:57:01 +02:00
afloader.c [autofit] Introduce `writing systems'. 2013-07-31 22:57:01 +02:00
afloader.h [autofit] Pass AF_Module' instead of AF_Loader'. 2012-09-14 12:26:57 +02:00
afmodule.c [autofit] Minor. 2013-03-23 14:06:54 +01:00
afmodule.h [autofit] Implement `fallback-script' property. 2012-09-15 18:26:28 +02:00
afpic.c [autofit] Introduce `writing systems'. 2013-07-31 22:57:01 +02:00
afpic.h [autofit] Introduce `writing systems'. 2013-07-31 22:57:01 +02:00
aftypes.h [autofit] Introduce `writing systems'. 2013-07-31 22:57:01 +02:00
afwarp.c Remove trailing spaces. 2012-01-17 02:00:24 +09:00
afwarp.h * src/cff/cffload.c (cff_index_get_pointers): Handle last entry 2007-01-25 11:50:00 +00:00
autofit.c Copyright. 2011-03-26 09:03:32 +01:00
Jamfile Remove compiler warning. 2009-05-28 07:07:48 +02:00
module.mk FT_USE_MODULE declares things as: 2008-12-21 10:29:30 +00:00
rules.mk */rules.mk: Handle `*pic.c' files. 2011-01-03 07:11:54 +01:00