Go to file
Werner Lemberg 319125d4c2 [autofit] Prevent overlapping blue zones.
Problem reported as

  https://github.com/google/fonts/issues/632

The font in question (Nunito) has values 705 and 713 for the
reference and overshoot values, respectively, of the first blue
zone.  Blue zone 2, however, has value 710 for both the reference
and overshoot.  At 12ppem, reference and overshoot of blue zone 0
becomes 8px, while blue zone 2 becomes 9px.

A peculiarity of this font is that the tops of isolated vertical
stems like `N' have a slight overshoot also.  The auto-hinter tries
to find the nearest blue zone using the *original* coordinates.  For
vertical stems, this is value 713.  For normal horizontal tops like
in character `E', this is value 710.  Since value 713 is mapped to
8px but value 710 to 9px, `N' and similar characters are one pixel
higher than `E', which looks very bad.

This commit sanitizes blue zones to avoid such a behaviour.

* src/autofit/aflatin.c (af_latin_sort_blue): New function.
(af_latin_metrics_init_blues): Sort blue values and remove overlaps.
2017-02-13 09:34:17 +01:00
builds Typo. 2017-02-04 20:33:53 +01:00
devel [pcf] Make long family names configurable. 2017-01-09 11:30:32 +01:00
docs Make `freetype-config' a wrapper of `pkg-config' if possible. 2017-02-04 20:30:40 +01:00
include Add comment that we don't use VORG table. 2017-02-06 07:54:59 +01:00
objs Fix Windows build directories. 2014-02-08 11:34:33 +01:00
src [autofit] Prevent overlapping blue zones. 2017-02-13 09:34:17 +01: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 [autofit] Prevent overlapping blue zones. 2017-02-13 09:34:17 +01:00
ChangeLog.20 Update copyright year. 2017-01-04 20:16:34 +01:00
ChangeLog.21 Typos. 2017-01-24 23:56:59 -05:00
ChangeLog.22 Typos. 2017-01-24 23:56:59 -05:00
ChangeLog.23 Typos. 2017-01-24 23:56:59 -05:00
ChangeLog.24 Typos. 2017-01-24 23:56:59 -05:00
ChangeLog.25 Typos. 2017-01-24 23:56:59 -05:00
ChangeLog.26 Typos. 2017-01-24 23:56:59 -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 ---