[autofit] Don't depend on 'hb-ft'.
The circular dependency is still there, but at least we no longer depend on the HarfBuzz API that is only present if HarfBuzz has been built with FreeType support, making the bootstrapping a bit easier. * src/autofit/ft-hb.c, src/autofit/ft-hb.h: New files, providing `_hb_ft_font_create`, which is more or less a verbatim copy of the corresponding HarfBuzz code from file `hb-ft.cc`. * src/autofit/afglobal.c (af_face_globals_new): Use it. * src/autofit/afshaper.h: Don't include `hb-ft.h` but `ft-hb.h`. * src/autofit/autofit.c: Include `ft-hb.c`. * LICENSE.TXT: Updated.
Showing
- LICENSE.TXT 4 additions, 0 deletionsLICENSE.TXT
- src/autofit/afglobal.c 1 addition, 1 deletionsrc/autofit/afglobal.c
- src/autofit/afshaper.h 1 addition, 1 deletionsrc/autofit/afshaper.h
- src/autofit/autofit.c 1 addition, 0 deletionssrc/autofit/autofit.c
- src/autofit/ft-hb.c 106 additions, 0 deletionssrc/autofit/ft-hb.c
- src/autofit/ft-hb.h 35 additions, 0 deletionssrc/autofit/ft-hb.h
Loading