1. 20 Jan, 2022 1 commit
    • Moazin's avatar
      Add 'svg' module for OT-SVG rendering. · 0bf49bd2
      Moazin authored and Werner Lemberg's avatar Werner Lemberg committed
      * CMakeLists.txt (BASE_SRCS): Add svg module file.
      * meson.build (ft2_public_headers): Add `otsvg.h`.
      
      * modules.cfg (RASTER_MODULES): Add `svg` module.
      
      * builds/meson/parse_modules_cfg.py: Add svg module.
      
      * include/freetype/config/ftmodule.h: Add `ft_svg_renderer_class`.
      * include/freetype/fterrdef.h: Add `Invalid_SVG_Document` and
      `Missing_SVG_Hooks` error codes.
      * include/freetype/internal/fttrace.h: Add tracing for `otsvg`.
      * include/freetype/internal/svginterface.h: New file.  It adds an interface
      to enable the presetting hook from the `base` module.
      * include/freetype/otsvg.h (SVG_Lib_Init_Func, SVG_Lib_Free_Func,
      SVG_Lib_Render_Func, SVG_Lib_Preset_Slot_Func): New hooks for SVG rendering.
      (SVG_RendererHooks): New structure to access them.
      
      * src/base/ftobjs.c: Include `svginterface.h`.
      (ft_glyphslot_preset_bitmap): Add code for presetting the slot for SVG
      glyphs.
      (ft_add_renderer): Updated.
      
      * src/svg/*: New files.
      0bf49bd2
  2. 11 Jan, 2022 1 commit
  3. 19 May, 2021 1 commit
  4. 17 Jan, 2021 1 commit
  5. 24 Dec, 2020 1 commit
    • Anuj Verma's avatar
      [sdf] Add build infrastructure. · 879ca87f
      Anuj Verma authored and Werner Lemberg's avatar Werner Lemberg committed
      * src/sdf/module.mk, src/sfd/rules.mk: New files.
      
      * src/sdf/ftsdf.h (ft_sdf_raster): New forward declaration.
      
      * include/freetype/ftmoderr.h (FT_MODERRDEF): Add error definition
      for the 'sdf' module.
      
      * include/freetype/internal/fttrace.h (FT_TRACE_DEF): Add trace
      definition for the `sdf' module.
      
      * modules.cfg (RASTER_MODULES): Add the `sdf' module to the list of
      rasterizers.
      879ca87f
  6. 19 Jan, 2020 1 commit
  7. 23 Feb, 2019 1 commit
  8. 22 Jan, 2019 1 commit
  9. 02 May, 2018 1 commit
    • Werner Lemberg's avatar
      Remove FT_CONFIG_OPTION_PIC and related code. · 95149592
      Werner Lemberg authored
      */* [FT_CONFIG_OPTION_PIC]: Remove all code guarded by this
      preprocessor symbol.
      
      */*: Replace `XXX_GET' macros (which could be either a function in
      PIC mode or an array in non-PIC mode) with `xxx' arrays.
      
      * include/freetype/internal/ftpic.h, src/autofit/afpic.c,
      src/autofit/afpic.h, src/base/basepic.c, src/base/basepic.h,
      src/base/ftpic.c, src/cff/cffpic.c, src/cff/cffpic.h,
      src/pshinter/pshpic.c, src/pshinter/pshpic.h, src/psnames/pspic.c,
      src/psnames/pspic.h, src/raster/rastpic.c, src/raster/rastpic.h,
      src/sfnt/sfntpic.c, src/sfnt/sfntpic.h, src/smooth/ftspic.c,
      src/smooth/ftspic.h, src/truetype/ttpic.c, src/truetype/ttpic.h:
      Removed.
      95149592
  10. 08 Mar, 2018 1 commit
  11. 05 Mar, 2018 2 commits
    • Werner Lemberg's avatar
      Make `ftlcdfil.c' part of the `base' module. · 733a21bd
      Werner Lemberg authored
      `ftobjs.c' needs `ft_lcd_padding'.
      
      Problem reported by duhuanpeng <548708880@qq.com>.
      
      * modules.cfg (BASE_EXTENSIONS): Don't include `ftlcdfil.c'.
      
      * src/base/ftbase.c: Include `ftlcdfil.c'.
      * src/base/rules.mk (BASE_SRC): Add `ftlcdfil.c'.
      * src/base/Jamfile (_sources): Adjusted.
      
      * docs/INSTALL.ANY: Updated.
      733a21bd
    • Werner Lemberg's avatar
      Make `ftfntfmt.c' part of the `base' module. · f4a35316
      Werner Lemberg authored
      `ftobjs.c' needs `FT_Get_Font_Format'.
      
      Problem reported by duhuanpeng <548708880@qq.com>.
      
      * modules.cfg (BASE_EXTENSIONS): Don't include `ftfntfmt.c'.
      
      * src/base/ftbase.c: Include `ftfntfmt.c'.
      * src/base/rules.mk (BASE_SRC): Add `ftfntfmt.c'.
      * src/base/Jamfile (_sources): Adjusted.
      
      * docs/INSTALL.ANY: Updated.
      f4a35316
  12. 02 Jan, 2018 1 commit
  13. 16 Oct, 2017 1 commit
  14. 25 Jan, 2017 1 commit
  15. 04 Jan, 2017 1 commit
  16. 28 Aug, 2016 2 commits
  17. 13 Jan, 2016 1 commit
  18. 26 Jun, 2015 1 commit
    • Werner Lemberg's avatar
      Another adjustment to header locations. · 392cf22f
      Werner Lemberg authored
      This change is a result of a discussion thread on freetype-devel
      
        http://lists.nongnu.org/archive/html/freetype-devel/2015-06/msg00041.html
      
      Re-introduce the `freetype2' subdirectory for all FreeType header
      files after installation, and rename the `freetype2' subdirectory in
      the git repository to `freetype'.
      
      * include/freetype2: Renamed to...
      * include/freetype: This.
      
      * CMakeLists.txt (PUBLIC_HEADERS, PUBLIC_CONFIG_HEADERS,
      PRIVATE_HEADERS): Updated.
      Update creation of `ftconfig.h'.
      Install generated `ftconfig.h'.
      
      * Jamfile (HDRMACRO, RefDoc), autogen.sh: Updated.
      
      * builds/amiga/include/config/ftconfig.h, builds/freetype.mk
      (PUBLIC_DIR), builds/symbian/bld.inf, builds/toplevel.mk (work),
      builds/unix/freetype2.in: Updated.
      
      * builds/unix/freetype-config.in: Updated.
      * builds/unix/configure.raw: Don't check for `rmdir'.
      * builds/unix/unix-def.in (DELDIR): Use `rm -rf', which is portable
      according to the autoconf info manual.
      * builds/unix/install.mk (install, uninstall,
      distclean_project_unix): Update and simplify.
      
      * builds/wince/*, builds/windows/*: Updated.
      
      * devel/ft2build.h, include/ft2build.h: Updated.
      
      * include/freetype2/config/ftheader.h,
      include/freetype2/internal/ftserv.h,
      include/freetype2/internal/internal.h: Update all header file
      macros.
      
      * src/tools/chktrcmp.py (TRACE_DEF_FILES): Updated.
      
      * docs/*: Updated.
      392cf22f
  19. 22 Jun, 2015 1 commit
    • Werner Lemberg's avatar
      Fix Savannah bug #45097. · 8502c98b
      Werner Lemberg authored
      We no longer `pollute' the namespace of possible header file names;
      instead we move `ft2build.h' up by one level so that it gets
      installed in the default include directory (e.g.,
      /usr/local/include).  After this commit, only `ft2build.h' stays in
      the compiler's include path.
      
      No visible changes for the user who follows the standard FreeType
      header inclusion rules.
      
      * include/*: Move to ...
      * include/freetype2/*: This directory, except `ft2build.h'.
      
      * CMakeLists.txt (PUBLIC_HEADERS, PUBLIC_CONFIG_HEADERS,
      PRIVATE_HEADERS), Jamfile (HDRMACRO, RefDoc), autogen.sh: Updated.
      
      * builds/amiga/include/config/ftconfig.h, builds/freetype.mk
      (PUBLIC_DIR), builds/symbian/bld.inf, builds/toplevel.mk (work),
      builds/unix/install.mk (install, uninstall),
      builds/unix/freetype2.in: Updated.
      
      * builds/unix/freetype-config.in: Updated.
      Emit -I directory only if it is not `/usr/include'.
      
      * builds/wince/*, builds/windows/*: Updated.
      
      * devel/ft2build.h, include/ft2build.h: Updated.
      
      * include/freetype2/config/ftheader.h,
      include/freetype2/internal/ftserv.h,
      include/freetype2/internal/internal.h: Update all header file
      macros.
      
      * src/tools/chktrcmp.py (TRACE_DEF_FILES): Updated.
      
      * docs/*: Updated.
      8502c98b
  20. 11 Mar, 2015 2 commits
    • Werner Lemberg's avatar
      Rename `FT_Get_X11_Font_Format' to `FT_Get_Font_Format'. · f4d1c11f
      Werner Lemberg authored
      * include/ftfntfmt.h, src/base/ftfntfmt.c: Implement it.
      
      * docs/CHANGES: Updated.
      f4d1c11f
    • Werner Lemberg's avatar
      Rename `ftxf86.[ch]' to `ftfntfmt.[ch]'. · 0633995b
      Werner Lemberg authored
      CMakeLists.txt, builds/amiga/makefile, builds/amiga/makefile.os4,
      builds/amiga/smakefile, builds/mac/FreeType.m68k_cfm.make.txt,
      builds/mac/FreeType.m68k_far.make.txt,
      builds/mac/FreeType.ppc_carbon.make.txt,
      builds/mac/FreeType.ppc_classic.make.txt, builds/symbian/bld.inf,
      builds/symbian/freetype.mmp, builds/wince/vc2005-ce/freetype.vcproj,
      builds/wince/vc2008-ce/freetype.vcproj,
      builds/windows/vc2005/freetype.vcproj,
      builds/windows/vc2008/freetype.vcproj,
      builds/windows/vc2010/freetype.vcxproj,
      builds/windows/vc2010/freetype.vcxproj.filters,
      builds/windows/visualc/freetype.dsp,
      builds/windows/visualc/freetype.vcproj,
      builds/windows/visualce/freetype.dsp,
      builds/windows/visualce/freetype.vcproj, docs/INSTALL.ANY,
      include/config/ftheader.h, include/ftfntfmt.h, modules.cfg,
      src/base/ftfntfmt.c, vms_make.com: Updated.
      0633995b
  21. 17 Jan, 2015 1 commit
  22. 13 Nov, 2013 1 commit
    • Werner Lemberg's avatar
      Simplify header file hierarchy. · fae38207
      Werner Lemberg authored
      This large patch changes the header file directory layout from
      `include/freetype/...' to `include/...', effectively removing one
      level.  Since the file `ft2build.h' is also located in `include'
      (and it stays there even after installation), all FreeType header
      files are now in a single directory.
      
      Applications that use (a) `freetype-config' or FreeType's
      `pkg-config' file to get the include directory for the compiler, and
      (b) the documented way for header inclusion like
      
        #include <ft2build.h>
        #include FT_FREETYPE_H
        ...
      
      don't need any change to the source code.
      
      * include/freetype/*: Move up to...
      * include/*: ... this directory.
      
      * builds/amiga/include/freetype/*: Move up to...
      * builds/amiga/include/*: ... this directory.
      
      */*: Essentially do `s@/freetype/@/@' where appropriate.
      
      * CMakeList.txt: Simplify.
      * builds/unix/freetype-config.in, builds/unix/freetype2.in: For
      `--cflags', return a single directory.
      * builds/unix/install.mk (install): No longer try to remove `cache'
      and `internal' subdirectories; instead, remove the `freetype'
      subdirectory.
      fae38207
  23. 26 Nov, 2011 1 commit
    • Werner Lemberg's avatar
      Add new error code FT_Err_Missing_Module. · 930e9bf8
      Werner Lemberg authored
      Previously, FreeType misleadingly returned
      FT_Err_Unknown_File_Format if a module was missing (or a test was
      missing completely).
      
      * include/freetype/fterrdef.h (FT_Err_Missing_Module): Define.
      
      * src/cff/cffobjs.c (cff_face_init), src/cid/cidobjs.c
      (cid_face_init), src/sfnt/sfobjs.c (sfnt_init_face),
      src/truetype/ttobjs.c (tt_face_init), src/type1/t1objs.c
      (T1_Face_Init), src/type42/t42objs.c (T42_Face_Init,
      T42_Driver_Init): Updated.
      
      * src/type1/t1afm.c (T1_Read_Metrics), src/type/t1objs.c
      (T1_Face_Init), src/type42/t42objs.c (T42_Face_Init): Remove now
      redundant test for `psaux'.
      930e9bf8
  24. 31 Dec, 2010 1 commit
    • Joel Klinghed's avatar
      Add bzip2 compression support to handle *.pcf.bz2 files. · ed913c21
      Joel Klinghed authored and Werner Lemberg's avatar Werner Lemberg committed
      * builds/unix/configure.raw: Test for libbz2 library.
      
      * devel/ftoption.h, include/freetype/config/ftoption.h
      (FT_CONFIG_OPTION_USE_BZIP2): Define.
      * include/freetype/config/ftheader.h (FT_BZIP2_H): Define.
      
      * include/freetype/ftbzip2.h: New file.
      
      * src/bzip2/*: New files.
      
      * src/pcf/pcf.h: s/gzip_/comp_/.
      * src/pcf/pcfdrvr.c: Include FT_BZIP2_H.
      s/gzip_/comp_/.
      (PCF_Face_Init): Handle bzip2 compressed files.
      
      * docs/formats.txt, modules.cfg: Updated.
      ed913c21
  25. 22 Jan, 2009 1 commit
    • Werner Lemberg's avatar
      · 5184ed6d
      Werner Lemberg authored
      Move FT_Get_FSType_Flags to a separate file.
      Problem reported by Mickey Gabel <mickey@monfort.co.il>.
      
      * src/base/ftobjs.c (FT_Get_FSType_Flags): Move to...
      * src/base/ftfstype.c: This new file.
      
      * modules.cfg (BASE_EXTENSION): Add ftfstype.c.
      
      * docs/INSTALL.ANY: Updated.
      
      * builds/mac/*.txt, builds/amiga/*makefile*,
      builds/win32/{visualc,visualce}/freetype.*, builds/symbian/*:
      Updated.
      5184ed6d
  26. 16 Jul, 2007 1 commit
    • Werner Lemberg's avatar
      · ef915c36
      Werner Lemberg authored
      * docs/CHANGES: Updated.
      
      
      Add new service for getting the ROS from a CID font.
      
      * include/freetype/config/ftheader.h (FT_CID_H): New macro.
      * include/freetype/ftcid.h: New file.
      
      * include/freetype/internal/ftserv.h (FT_SERVIVE_CID_H): New macro.
      * include/freetype/internal/services/svcid.h: New file.
      
      * src/base/ftcid.c: New file.
      
      * src/cff/cffdrivr.c: Include FT_SERVICE_CID_H.
      (cff_get_ros): New function.
      (cff_service_cid_info): New service structure.
      (cff_services): Register it.
      
      * src/cff/cffload.c (cff_font_done): Free registry and ordering.
      
      * src/cff/cfftypes.h (CFF_FontRec): Add `registry' and `ordering'.
      
      * modules.cfg (BASE_EXTENSIONS): Add ftcid.c.
      ef915c36
  27. 11 Jun, 2007 1 commit
    • Werner Lemberg's avatar
      · f6c120f8
      Werner Lemberg authored
      * docs/CHANGES: Document FT_Face_CheckTrueTypePatents).
      
      Formatting, reformulations.
      f6c120f8
  28. 10 Jun, 2007 1 commit
    • David Turner's avatar
      * include/freetype/config/ftoption.h: clarify documentation regarding · 84c6f881
      David Turner authored
      	unpatented hinting
      
      	* include/freetype/freetype.h, src/base/ftpatent.c, src/truetype/ttdriver.c,
      	include/freetype/internal/services/svttglyf.h, modules.cfg,:
      	include/freetype/internal/ftserv.h,:
      	Fonts without a cmap must be handled correctly by FreeType (anything
      	Adding the FT_Face_CheckTrueTypePatents API to FT_FREETYPE_H, it is
      	implemented by the optional src/base/ftpatent.c
      84c6f881
  29. 31 Jan, 2007 1 commit
    • Werner Lemberg's avatar
      · 53935939
      Werner Lemberg authored
      * Version 2.3.1 released.
      =========================
      
      
      Tag sources with `VER-2-3-1-FINAL'.
      
      * builds/win32/visualc/freetype.dsp,
      builds/win32/visualc/freetype.vcproj: s/230/231/.
      * builds/win32/visualc/index.html: s/221/231/.
      
      * vms_make.com: Add `ftgasp'.
      53935939
  30. 13 Jan, 2007 1 commit
    • Werner Lemberg's avatar
      · 23df31ad
      Werner Lemberg authored
      * src/base/ftoutln.c (FT_Outline_Get_Orientation): Fix compilation
      with C++ compiler.
      
      * src/autofit/afhints.c (af_glyph_hints_dump_segments,
      af_glyph_hints_dump_edges): Ditto.
      
      * src/base/rules.mk (BASE_SRC): Remove ftgasp.c (it's already in
      `modules.cfg').
      
      * src/sfnt/ttsbit0.h: Remove.
      
      * src/sfnt/rules.mk (SFNT_DRV_SRC): Don't include ttsbit0.c.
      23df31ad
  31. 09 Jan, 2007 1 commit
    • Werner Lemberg's avatar
      · cc7f12a4
      Werner Lemberg authored
      formatting, copyright years and messages, doc polishing
      cc7f12a4
  32. 08 Jan, 2007 1 commit
    • David Turner's avatar
      * include/freetype/ftgasp.h, src/base/ftgasp.c: adding a · f48b60ed
      David Turner authored
              new API FT_Get_Gasp to return entries of the GASP table
              corresponding to a given character pixel size.
      
              * src/sfnt/ttload.c: add version check for the GASP table,
              in order to be better future-proof
      
              * include/freetype/config/ftheader.h: add definition of
              FT_GASP_H, corresponding to <freetype/ftgasp.h>
      
              * src/base/rules.mk, src/base/Jamfile, modules.cfg,
              builds/win32/visualc/freetype.dsp,
              builds/win32/visualc/freetype.vcproj: Adding src/base/ftgasp.c
              to the default build
      f48b60ed
  33. 29 Sep, 2006 1 commit
  34. 27 Sep, 2006 1 commit
  35. 15 Aug, 2006 1 commit
  36. 22 Feb, 2006 2 commits
    • Werner Lemberg's avatar
      · 5edafed1
      Werner Lemberg authored
      Clean-ups, copyright years, formatting.
      5edafed1
    • Chia-I Wu's avatar
      * modules.cfg: Compile in ftotval.c and ftxf86.c by default for ABI · facd9af5
      Chia-I Wu authored
      compatibility.
      
      * src/sfnt/sfobjs.c (sfnt_done_face): Fix a memory leak.
      
      * src/sfnt/ttsbit0.c (tt_sbit_decoder_load_bit_aligned,
      tt_sbit_decoder_load_byte_aligned) [FT_OPTIMIZE_MEMORY]: Fix sbit
      loading. (only tested with bit aligned sbit with x_pos == 0)
      
      * src/truetype/ttpload.c (tt_face_load_hdmx,
      tt_face_get_device_metrics) [FT_OPTIMIZE_MEMORY]: hdmx is not actually
      used.
      facd9af5