Go to file
Werner Lemberg 5aa6716a5e Add new `slight' auto-hinting mode.
This mode uses fractional advance widths and doesn't scale glyphs
horizontally, only applying vertical scaling and hinting.

At the same time, the behaviour of the `light' auto-hinter gets
restored for backwards compatibility: Both vertical and horizontal
scaling is again based on rounded metrics values (this was changed
in a commit from 2017-03-30 as a side effect).  To be more precise,
the behaviour is restored for TrueType fonts only; for other font
formats like Type 1, this is a new feature of the `light' hinting
mode.

* include/freetype/freetype.h (FT_LOAD_TARGET_SLIGHT): New macro.
(FT_RENDER_MODE_SLIGHT): New render mode.

* include/freetype/internal/ftobjs.h (FT_Size_InternalRec): Add
`autohint_mode' and `autohint_metrics' fields.

* src/autofit/afcjk.c (af_cjk_hints_init), src/autofit/aflatin.c
(af_latin_hints_init), src/autofit/aflatin2 (af_latin2_hints_init):
Updated.

* src/autofit/afloader.c (af_loader_embolden_glyph_in_slot): Use
`autohint_metrics'.
(af_loader_load_glyph): s/internal/slot_internal/.
Initialize `autohint_metrics' and `autohint_mode' depending on
current auto-hint mode.
Use `autohint_metrics'.
Updated.

* src/base/ftadvanc.c (LOAD_ADVANCE_FAST_CHECK): Updated.

* src/base/ftobjs.c (FT_Load_Glyph): Updated.
(FT_New_Size): Allocate `internal' object.

* src/pshinter/pshalgo.c (ps_hints_apply): Updated.

* src/smooth/ftsmooth.c (ft_smooth_render): Updated.
2017-04-26 11:39:53 +02:00
builds Introduce FT_UINT_TO_POINTER macro (#50560). 2017-03-18 17:30:42 +01:00
devel Fix preprocessor warning. 2017-03-17 21:34:08 +01:00
docs And another CVE for an older FreeType version. 2017-04-26 09:35:39 +02:00
include Add new `slight' auto-hinting mode. 2017-04-26 11:39:53 +02:00
objs Fix Windows build directories. 2014-02-08 11:34:33 +01:00
src Add new `slight' auto-hinting mode. 2017-04-26 11:39:53 +02:00
.gitignore [build] Better optimization settings for vc2010 solution file. 2014-10-14 11:35:16 +02:00
.mailmap Whitespace, `.mailmap' update. 2015-12-14 07:02:56 +01:00
CMakeLists.txt Update copyright year. 2017-01-04 20:16:34 +01:00
ChangeLog Add new `slight' auto-hinting mode. 2017-04-26 11:39:53 +02:00
ChangeLog.20 Typos. 2017-04-19 23:50:29 -04:00
ChangeLog.21 Typos. 2017-04-21 22:27:49 -04:00
ChangeLog.22 Typos. 2017-04-16 23:41:26 -04:00
ChangeLog.23 Typos. 2017-04-21 22:27:49 -04:00
ChangeLog.24 Typos. 2017-04-19 23:50:29 -04:00
ChangeLog.25 Typos. 2017-04-19 23:50:29 -04:00
ChangeLog.26 Typos. 2017-03-07 22:21:26 -05:00
Jamfile Update copyright year. 2017-01-04 20:16:34 +01:00
Jamrules Update copyright year. 2017-01-04 20:16:34 +01:00
Makefile Update copyright year. 2017-01-04 20:16:34 +01:00
README Update copyright year. 2017-01-04 20:16:34 +01:00
README.git Update copyright year. 2017-01-04 20:16:34 +01:00
autogen.sh Update copyright year. 2017-01-04 20:16:34 +01:00
configure Update copyright year. 2017-01-04 20:16:34 +01:00
modules.cfg Typos. 2017-01-24 23:56:59 -05:00
version.sed Put version information into the configure script. Reported by Paul 2006-05-08 07:10:29 +00:00
vms_make.com Update copyright year. 2017-01-04 20:16:34 +01:00

README

  FreeType 2.7.1
  ==============

  Homepage: http://www.freetype.org

  FreeType is a freely available software library to render fonts.

  It  is  written  in  C,  designed to  be  small,  efficient,  highly
  customizable, and  portable while capable of  producing high-quality
  output  (glyph  images) of  most  vector  and bitmap  font  formats.

  Please   read   the  docs/CHANGES   file,   it  contains   IMPORTANT
  INFORMATION.

  Read the  files `docs/INSTALL*'  for installation  instructions; see
  the file `docs/LICENSE.TXT' for the available licenses.

  The FreeType 2 API reference is located in `docs/reference'; use the
  file   `ft2-toc.html'   as   the   top  entry   point.    Additional
  documentation is available as a separate package from our sites.  Go
  to

    http://download.savannah.gnu.org/releases/freetype/

  and download one of the following files.

    freetype-doc-2.7.1.tar.bz2
    freetype-doc-2.7.1.tar.gz
    ftdoc271.zip

  To view the documentation online, go to

    http://www.freetype.org/freetype2/documentation.html


  Mailing Lists
  =============

  The preferred way  of communication with the FreeType  team is using
  e-mail lists.

    general use and discussion:      freetype@nongnu.org
    engine internals, porting, etc.: freetype-devel@nongnu.org
    announcements:                   freetype-announce@nongnu.org
    git repository tracker:          freetype-commit@nongnu.org

  The lists are moderated; see

    http://www.freetype.org/contact.html

  how to subscribe.


  Bugs
  ====

  Please submit bug reports at

    https://savannah.nongnu.org/bugs/?group=freetype

  Alternatively,    you   might    report    bugs    by   e-mail    to
  `freetype-devel@nongnu.org'.   Don't  forget   to  send  a  detailed
  explanation of the problem --  there is nothing worse than receiving
  a terse message that only says `it doesn't work'.


  Enjoy!


    The FreeType Team

----------------------------------------------------------------------

Copyright 2006-2017 by
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.


--- end of README ---