Commit graph

211 commits

Author SHA1 Message Date
jperkin
f350fb4abc freetype2: Re-enable the freetype-config script.
This is still used by dependencies that haven't yet switched over to
using pkg-config, such as graphics/php-gd.  Until all dependent packages
have switched we can't remove this.  Bump PKGREVISION.
2018-05-14 09:13:16 +00:00
adam
15fca091e6 freetype2: updated to 2.9.1
CHANGES BETWEEN 2.9 and 2.9.1

I. IMPORTANT BUG FIXES

  - Type  1  fonts  containing   flex  features  were  not  rendered
    correctly (bug introduced in version 2.9).

  - CVE-2018-6942: Older  FreeType versions  can crash  with certain
    malformed variation fonts.

      http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-6942


II. MISCELLANEOUS

  - Bug fix: Multiple calls to `FT_Get_MM_Var' returned garbage.

  - The base  extensions `ftlcdfil' and  `ftfntfmt' are now  part of
    the  base  module  (and  thus no  longer  configurable  in  file
    `modules.cfg').

  - Emboldening of bitmaps didn't work correctly sometimes,  showing
    various artifacts (bug introduced in version 2.8.1).

  - Use  of  the `freetype-config'  script  to  get compilation  and
    linking  options   is  deprecated   since  it   doesn't  support
    cross-compiling, among other  deficiencies.  Instead, you should
    use the `pkg-config' interface.

    The `configure'  script no longer installs  `freetype-config' by
    default.  For  backwards compatibility,  a new  configure option
    `--enable-freetype-config'   is  provided   that  reverts   this
    decision.

  - The auto-hinter script ranges have  been updated for Unicode 11.
    No support  for new scripts  have been added, however,  with the
    exception of Georgian Mtavruli.

  - Support for cmake has been improved.

  - The next  release will  remove support for  Position Independent
    Code  as  needed  by  systems that  prohibit  automatic  address
    fixups, such  as BREW.  [Compilation with  modern compilers that
    use flags like `-fPIC' or `-fPIE' is not affected.]
2018-05-04 08:40:11 +00:00
adam
25f98f6ded freetype2: updated to 2.9
FreeType 2.9
FreeType version 2.9, the first release of a new ‘minor’ series, is now available for download. The main reason for starting a new series is Ewald Hew's GSoC contribution of making Adobe's CFF engine handle Type 1 fonts also, greatly improving the rendering quality of this ancient but still important font format.
2018-01-18 09:49:24 +00:00
rillig
4376895e91 graphics/*: remove redundant :Q modifiers
pkgsrc doesn't support PREFIX with spaces or other special characters.
Therefore it is not necessary to add the :Q modifier to this variable
and several others.
2018-01-14 14:58:38 +00:00
rillig
17e39f419d Fix indentation in buildlink3.mk files.
The actual fix as been done by "pkglint -F */*/buildlink3.mk", and was
reviewed manually.

There are some .include lines that still are indented with zero spaces
although the surrounding .if is indented. This is existing practice.
2018-01-07 13:03:53 +00:00
adam
9c86923d4c freetype2: update to 2.8.1
FreeType 2.8.1 has been released. This is mainly a maintenance release with one important change: By default, FreeType now offers high quality LCD-optimized output without resorting to ClearType techniques of resolution tripling and filtering. In this method, called Harmony, each color channel is generated separately after shifting the glyph outline, capitalizing on the fact that the color grids on LCD panels are shifted by a third of a pixel. This output is indistinguishable from ClearType with a light 3-tap filter.
2017-09-18 16:54:06 +00:00
wiz
8733ee0040 Follow some http -> https redirects. 2017-08-01 14:58:51 +00:00
spz
8013f2f01f Update from 2.7.1 to 2.8: 3 API additions, no deletions, no changes
fixes CVE-2017-7857 CVE-2017-7858 CVE-2017-7864 CVE-2017-8105 CVE-2017-8287

Upstream change announcement:

  I. IMPORTANT CHANGES

    - Support for OpenType Variation Fonts is now complete.   The last
      missing part was handling the `VVAR' and `MVAR' tables, which is
      available with this release.

    - A new  function `FT_Face_Properties' allows the  control of some
      module  and   library  properties  per  font.    Currently,  the
      following properties can be  handled: stem darkening, LCD filter
      weights, and the random seed for the `random' CFF operator.

    - The PCF change to show more `colourful' family names (introduced
      in version 2.7.1) was too radical; it can now be configured with
      PCF_CONFIG_OPTION_LONG_FAMILY_NAMES   at   compile   time.    If
      activated, it can  be switched off at run time  with the new pcf
      property  `no-long-family-names'.  If  the `FREETYPE_PROPERTIES'
      environment variable is available, you can say

        FREETYPE_PROPERTIES=pcf:no-long-family-names=1

    - Support  for  the  following  scripts  has  been  added  to  the
      auto-hinter.

        Adlam, Avestan, Bamum, Buhid, Carian, Chakma, Coptic, Cypriot,
        Deseret, Glagolitic, Gothic, Kayah, Lisu, N'Ko, Ol Chiki, Old
        Turkic, Osage, Osmanya, Saurashtra, Shavian, Sundanese, Tai
        Viet, Tifinagh, Unified Canadian Syllabics, Vai


  II. IMPORTANT BUG FIXES

    - `Light' auto-hinting  mode no  longer uses TrueType  metrics for
      TrueType  fonts.   This bug  was  introduced  in version  2.4.6,
      causing   horizontal  scaling   also.    Almost  all   GNU/Linux
      distributions (with Fedora as  a notable exception) disabled the
      corresponding patch for good reasons; chances are thus high that
      you won't notice a difference.

      If  optical backward  compatibility for  legacy applications  is
      necessary, you might enable the AF_CONFIG_OPTION_TT_SIZE_METRICS
      configuration option.   However, it  is strongly  recommended to
      avoid that, adjusting font sizes instead.

    - If a TrueType font gets loaded with FT_LOAD_NO_HINTING, FreeType
      now scales  the font linearly  again (bug introduced  in version
      2.4.6).

    - CVE-2017-8105,  CVE-2017-8287:  Older   FreeType  versions  have
      out-of-bounds  writes  caused  by  heap-based  buffer  overflows
      related to Type 1 fonts.

        https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-8105
        https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-8287


  III. MISCELLANEOUS

    - A  new function  `FT_Set_Default_Properties' has  been added  to
      parse    the    `FREETYPE_PROPERTIES'    environment    variable
      (previously, it  was internal only).   `FT_Init_FreeType' always
      call this  function, but  `FT_New_Library' does not  (similar to
      `FT_Add_Default_Modules').

    - To be in sync with OpenType version 1.7 and newer, macros

        FT_PARAM_TAG_IGNORE_PREFERRED_FAMILY,
        FT_PARAM_TAG_IGNORE_PREFERRED_SUBFAMILY,
        TT_NAME_ID_PREFERRED_FAMILY
        TT_NAME_ID_PREFERRED_SUBFAMILY

      are renamed to

        FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_FAMILY,
        FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_SUBFAMILY,
        TT_NAME_ID_TYPOGRAPHIC_FAMILY
        TT_NAME_ID_TYPOGRAPHIC_SUBFAMILY

      The old macro names are deprecated (but still available).

    - Support for SFNT `name' tables has been improved.

      . Format  1 `name' tables  are now supported.  Use  new function
        `FT_Get_Sfnt_LangTag' to access associated language tags.

      . Language, encoding, and name IDs have been updated to OpenType
        version 1.8.1.

    - The new CFF  engine now handles the `random'  operator.  All CFF
      opcodes are now supported.

    - The CFF module  has a new property `random-seed'  to control the
      pseudo-random number generation for the `random' operator.

    - The `freetype-config' script is now a wrapper of `pkg-config' if
      this program is available in the path.

    - FT_LOAD_TARGET_LCD  is now  a  variant of  FT_LOAD_TARGET_LIGHT;
      this should provide better rendering results.

    - A mode to display  light auto-hinting with sub-pixel positioning
      has been added to `ftdiff'.
2017-05-14 11:02:15 +00:00
agc
30b55df38e Convert all occurrences (353 by my count) of
MASTER_SITES= 	site1 \
			site2

style continuation lines to be simple repeated

	MASTER_SITES+= site1
	MASTER_SITES+= site2

lines. As previewed on tech-pkg. With thanks to rillig for fixing pkglint
accordingly.
2017-01-19 18:52:01 +00:00
adam
cf2a918d55 FreeType 2.7.1 has been released. The most important news is preliminary support of Adobe's new CFF2 font format and variation fonts as specified in the new OpenType specification version 1.8. It also fixes the handling of raw CID fonts (which might be found in PDF files) 2017-01-16 13:11:46 +00:00
wiz
52d0378ac4 Add rpath to freetype-config script.
Bump PKGREVISION.
2016-10-30 17:07:12 +00:00
wiz
74bf70c682 Updated freetype2 to 2.7.
Remove subpixel option which is now on by default.

CHANGES BETWEEN 2.6.5 and 2.7

  I. IMPORTANT CHANGES

    - As announced earlier, the 2.7.x series now uses the new subpixel
      hinting  mode as  the  default, emulating  a  modern version  of
      ClearType.

      This change inevitably leads to different rendering results, and
      you   might   change   the   `TT_CONFIG_OPTION_SUBPIXEL_HINTING'
      configuration option to  adapt it to your taste (or  use the new
      `FREETYPE_PROPERTIES'    environment    variable).    See    the
      corresponding entry  below for  version 2.6.4, which  gives more
      information.

    - A new option  `FT_CONFIG_OPTION_ENVIRONMENT_PROPERTIES' has been
      introduced.   If  set (which  is  the  default), an  environment
      variable  `FREETYPE_PROPERTIES' can  be used  to control  driver
      properties.  Example:

        FREETYPE_PROPERTIES=truetype:interpreter-version=35 \
                            cff:no-stem-darkening=1 \
                            autofitter:warping=1

      This allows to select, say, the subpixel hinting mode at runtime
      for a given application.  See file `ftoption.h' for more.


  II. IMPORTANT BUG FIXES

    - After  loading a  named instance  of  a GX  variation font,  the
      `face_index'  value  in  the returned  `FT_Face'  structure  now
      correctly holds the named instance  index in the upper 16bits as
      documented.


  III. MISCELLANEOUS

    - A new macro `FT_IS_NAMED_INSTANCE' to  test whether a given face
      is a named instance.

    - More fixes to GX font handling.

    - Apple's   `GETVARIATION'  bytecode   operator  (needed   for  GX
      variation font support) has been implemented.

    - Another round  of fuzzer fixes,  mainly to reject  invalid fonts
      faster.

    - Handling of raw CID fonts  was broken (bug introduced in version
      2.6.4).

    - The smooth rasterizer has been streamlined  to make it faster by
      approx. 20%.

    - The `ftgrid'  demo program now  understands command  line option
      `-d' to give start-up design coordinates.

    - The `ftdump' demo program has  a new command line option `-p' to
      dump TrueType bytecode instructions.
2016-09-12 18:06:44 +00:00
adam
c1eaef4455 FreeType 2.6.5
This release is almost identical to the previous version, with two differences.
* It compiles again on Mac OS X, and
* it reverts the activation of subpixel hinting by default; it will be enabled by default in the forthcoming 2.7.x series. Main reason for reverting this feature is the principle of least surprise: a sudden change in appearance of all fonts (even if the rendering improves for almost all recent fonts) should not be expected in a new micro version of a series.
2016-07-22 10:30:11 +00:00
adam
736fe36d04 Changes 2.6.4:
FreeType 2.6.4 has been released. The most important change is a new bytecode hinting mode for TrueType fonts that finally activates subpixel hinting (a.k.a. ClearType hinting) by default.

The new release also brings support for the following new scripts in the auto-hinter: Armenian, Cherokee, Ethiopic, Georgian, Gujarati, Gurmukhi, Malayalam, Sinhala, and Tamil.
2016-07-09 12:23:16 +00:00
adam
f35d5a7b79 CHANGES BETWEEN 2.6.2 and 2.6.3
I. IMPORTANT CHANGES

    - Khmer,  Myanmar, Bengali,  and Kannada  script support  has been
      added to the auto-hinter.


  II. MISCELLANEOUS

    - Better  support of  Indic  scripts like  Devanagari  by using  a
      top-to-bottom hinting flow.

    - All  FreeType macros  starting  with two  underscores have  been
      renamed to  avoid a violation of  both the C and  C++ standards.
      Example: Header  macros of the  form `__FOO_H__' are  now called
      `FOO_H_'.  In most cases,  this should be completely transparent
      to the user.   The exception to this  is `__FTERRORS_H__', which
      must be  sometimes undefined by  the user to get  FreeType error
      strings:  Both this  form and  the new  `FTERRORS_H_' macro  are
      accepted for backwards compatibility.

    - Minor improvements mainly to the Type 1 driver.

    - The  new CFF  engine now  supports all  Type 2  operators except
      `random'.

    - The macro `_STANDALONE_', used for  compiling the B/W and smooth
      rasterizers  as   stand-alone  modules,  has  been   renamed  to
      `STANDALONE_', since macro names starting with an underscore and
      followed by an uppercase letter are reserved in both C and C++.

    - Function  `FT_Library_SetLcdFilterWeights'  now  also  activates
      custom LCD filter weights (instead of just adjusting them).

    - Support for  `unpatented hinting'  has been  completely removed:
      Consequently,  the two  functions `FT_Face_CheckTrueTypePatents'
      and  `FT_Face_SetUnpatentedHinting'  now  return  always  false,
      doing nothing.

    - The `ftgamma' demo  program has been modernized;  the gamma grid
      display has been moved from `ftview' to this program.

    - It is now possible to  cycle through the available LCD fitlering
      modes.
2016-04-07 10:02:13 +00:00
dbj
70a786b76d set CHECK_BUILTIN.zlib:=yes so that zlib's builtin.mk won't create a fake zlib.pc
otherwise, freetype2 will add a Requires: for the fake .pc file to its own .pc file
2016-03-14 06:08:10 +00:00
jperkin
6672c3b915 Use OPSYSVARS. 2016-02-25 13:37:46 +00:00
bsiegert
b1599dbd34 Update freetype2 to 2.6.2. Include file layout changed yet again, please
test dependent packages.

CHANGES BETWEEN 2.6 and 2.6.1

  I. IMPORTANT BUG FIXES

    - It turned  out that for CFFs  only the advance widths  should be
      taken from the  `htmx' table, not the side  bearings.  This bug,
      introduced in  version 2.6.0, makes  it necessary to  upgrade if
      you are using  CFFs; otherwise, you get cropped  glyphs with GUI
      interfaces like GTK or Qt.

    - Accessing Type 42 fonts returned  incorrect results if the glyph
      order of the embedded TrueType font differs from the glyph order
      of the Type 42 charstrings table.


  II. IMPORTANT CHANGES

    - The header  file layout  has been  changed (again),  moving  all
      header files except `ft2build.h' into a subdirectory tree.

      Doing so  reduces the  possibility of  header file  name clashes
      (e.g., FTGL's  `FTGlyph.h' with FreeType's `ftglyph.h')  on case
      insensitive file systems like Mac OS X or Windows.

      Applications  that  use  (a)  the  `freetype-config'  script  or
      FreeType's `freetype2.pc' file for pkg-config 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.

    - Simple access  to named instances  in GX variation fonts  is now
      available (in addition to the  previous method via FreeType's MM
      interface).   In  the `FT_Face'  structure,  bits  16-30 of  the
      `face_index' field hold the current named instance index for the
      given face  index, and bits  16-30 of `style_flags'  contain the
      number of  instances for  the given face  index.  `FT_Open_Face'
      and friends also understand the  extended bits of the face index
      parameter.

      You need to enable  TT_CONFIG_OPTION_GX_VAR_SUPPORT for this new
      feature.  Otherwise, bits  16-30 of the two fields  are zero (or
      are ignored).

    - Lao script support has been added to the auto-hinter.


  III. MISCELLANEOUS

    - The auto-hinter's Arabic script support has been enhanced.

    - Superscript-like and  subscript-like glyphs  as used  by various
      phonetic alphabets like the IPA  are now better supported by the
      auto-hinter.

    - The TrueType bytecode interpreter now runs slightly faster.

    - Improved support for builds with cmake.

    - The  function  `FT_CeilFix'  now   always  rounds  towards  plus
      infinity.

    - The  function  `FT_FloorFix'  now always  rounds  towards  minus
      infinity.

    - A  new load  flag `FT_LOAD_COMPUTE_METRICS'  has been  added; it
      makes FreeType  ignore pre-computed  metrics, as needed  by font
      validating  or  font  editing  programs.  Right  now,  only  the
      TrueType  module supports  it  to ignore  data  from the  `hdmx'
      table.

    - Another round of bug fixes  to better handle broken fonts, found
      by Kostya Serebryany <kcc@google.com>.

CHANGES BETWEEN 2.6.1 and 2.6.2

  I. IMPORTANT CHANGES

    - The auto-hinter now supports stem darkening, to be controlled by
      the    new   `no-stem-darkening'    and   `darkening-parameters'
      properties.   This is  an  experimental  feature contributed  by
      Nikolaus Waxweiler, and  the interface might change  in a future
      release.

    - By default, stem darkening is now switched off (for both the CFF
      engine and the  auto-hinter).  The main reason is  that you need
      linear  alpha  blending  and  gamma correction  to  get  correct
      rendering results, and  the latter is not yet  available in most
      freely  available  rendering  stacks like  X11.   Applying  stem
      darkening without proper gamma correction  leads to far too dark
      rendering results.

    - The   meaning  of   `FT_RENDER_MODE_LIGHT'  has   been  slightly
      modified.   It  now  essentially  means `no  hinting  along  the
      horizontal  axis'; in  particular,  no change  of glyph  advance
      widths.  Consequently, the auto-hinter  is used for all scalable
      font  formats  except  for  CFF.    It  is  planned  that  other
      font-specific rendering engines (TrueType, Type 1) will follow.


  II. MISCELLANEOUS

    - The default  LCD filter  has been changed  to be  normalized and
      color-balanced.

    - For    better    compatibility   with    FontConfig,    function
      `FT_Library_SetLcdFilter'  accepts   a  new   enumeration  value
      `FT_LCD_FILTER_LEGACY1'   (which  has   the   same  meaning   as
      `FT_LCD_FILTER_LEGACY').

    - A large number of bugs have been detected by using the libFuzzer
      framework,  which should  further  improve  handling of  invalid
      fonts.  Thanks again to Kostya Serebryany and Bungeman!

    - `TT_CONFIG_OPTION_MAX_RUNNABLE_OPCODES',  a   new  configuration
      option, controls the maximum number of executed opcodes within a
      bytecode program.  You don't want to change this except for very
      special  situations (e.g.,  making a  library fuzzer  spend less
      time to handle broken fonts).

    - The smooth renderer has been made faster.

    - The `ftstring'  demo program  now supports  sub-pixel rendering;
      use key `l' to cycle through the LCD modes.

    - The `ftstring'  demo program now supports  colour rendering; use
      the `space' key to cycle through various colour combinations.

    - The graphical demo programs now use a default gamma value of 1.8
      (instead of 1.2).
2016-01-10 21:16:33 +00:00
agc
7f810a359f Add SHA512 digests for distfiles for graphics category
Problems found with existing digests:
	Package fotoxx distfile fotoxx-14.03.1.tar.gz
	ac2033f87de2c23941261f7c50160cddf872c110 [recorded]
	118e98a8cc0414676b3c4d37b8df407c28a1407c [calculated]
	Package ploticus-examples distfile ploticus-2.00/plnode200.tar.gz
	34274a03d0c41fae5690633663e3d4114b9d7a6d [recorded]
	da39a3ee5e6b4b0d3255bfef95601890afd80709 [calculated]

Problems found locating distfiles:
	Package AfterShotPro: missing distfile AfterShotPro-1.1.0.30/AfterShotPro_i386.deb
	Package pgraf: missing distfile pgraf-20010131.tar.gz
	Package qvplay: missing distfile qvplay-0.95.tar.gz

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-03 21:33:50 +00:00
mef
58552ffd63 Update 2.5.5 to 2.6
----------------------
(from http://www.freetype.org/)
2015-06-08 FreeType 2.6
  FreeType 2.6 has been released. This is a new major release that
  provides a better (and simpler) thread-safety model. Among other new
  features we now have auto-hinting support for Arabic and Thai,
  together with much improved handling of Apple's GX TrueType variation
  font format.
  (ChangeLog from 2.5.5 to 2.6 extends some 1600 lines, consult with it
  in src tarball if necessary, thanks)

ok by wiz@
2015-09-06 08:34:20 +00:00
wiz
a1e9f7a39b Add magic to fix freetype pc files on NetBSD 6 and 7 which had outdated
information in the installed pc file.
Remove local hack in fonts/harfbuzz.

From Leonardo Taccari <iamleot@gmail.com> in private email.
2015-02-18 09:53:27 +00:00
adam
831cba1d14 FreeType 2.5.5 has been released. This is a minor bug fix release: All users of PCF fonts should update, since version 2.5.4 introduced a bug that prevented reading of such font files if not compressed. 2015-02-11 10:51:09 +00:00
adam
10d13dac64 Changes 2.5.4:
I. IMPORTANT BUG FIXES
  - A   variant  of   vulnerability  CVE-2014-2240   was  identified
    (cf.  http://savannah.nongnu.org/bugs/?43661) and  fixed in  the
    new CFF driver.  All users should upgrade.
  - The new auto-hinter code using HarfBuzz crashed for some invalid
    fonts.
  - Many fixes to better protect against malformed input.

II. IMPORTANT CHANGES
  - Full auto-hinter support of the Devanagari script.
  - Experimental auto-hinter support of the Telugu script.
  - CFF stem darkening behaviour can now be controlled at build time
    using the eight macros
      CFF_CONFIG_OPTION_DARKENING_PARAMETER_{X,Y}{1,2,3,4}    .
  - Some fields in the `FT_Bitmap'  structure have been changed from
    signed to unsigned type, which better reflects the actual usage.
    It  is also  an additional  means to  protect against  malformed
    input.
    This  change doesn't  break  the ABI;  however,  it might  cause
    compiler warnings.

III. MISCELLANEOUS
  - Improvements to  the auto-hinter's algorithm to  recognize stems
    and local extrema.
  - Function `FT_Get_SubGlyph_Info' always returned an error even in
    case of success.
  - Version  2.5.1 introduced  major bugs  in  the cjk  part of  the
    auto-hinter, which are now fixed.
  - The  `FT_Sfnt_Tag'  enumeration  values  have  been  changed  to
    uppercase,  e.g.  `FT_SFNT_HEAD'.   The lowercase  variants  are
    deprecated.    This  is   for  orthogonality   with  all   other
    enumeration (and enumeration-like) values in FreeType.
  - `cmake' now supports builds of FreeType as an OS X framework and
    for iOS.
  - Improved project files for vc2010, introducing a property file.
  - The  documentation generator  for  the API  reference  has  been
    updated to produce  better HTML code (with proper  CSS).  At the
    same time, the documentation got a better structure.
  - The FT_LOAD_BITMAP_CROP flag is obsolete;  it is not used by any
    driver.
  - The  TrueType  DELTAP[123]  bytecode instructions  now  work  in
    subpixel hinting  mode as described in  the ClearType whitepaper
    (i.e., for touched points in the non-subpixel direction).
  - Many small improvements to the internal arithmetic routines.
2014-12-09 10:50:04 +00:00
wiz
cda18437be Remove pkgviews: don't set PKG_INSTALLATION_TYPES in Makefiles. 2014-10-09 14:05:50 +00:00
dsainty
a341be1ef2 Add: CONFIGURE_ARGS+=--with-harfbuzz=no
Fixes the build on systems with a native harfbuzz library, where the
  library will otherwise be auto-detected.

Add: USE_TOOLS+=pkg-config

  Not identified as fixing any real-world problems, but it corrects build
  behaviour if buildlinking harfbuzz for diagnostic purposes.

Helps with working around the problems identified in PR pkg/48919.

No PKGREVISION bump - I believe all the problems fixed here prevent this
package from building at all if on an affected platform, and unaffected
platforms will not be affected by these changes.
2014-07-07 07:14:27 +00:00
tron
4bf49b9cb2 Correctly detect modern versions of "freetype2" e.g. under recent
versions of NetBSD-current.
2014-03-24 15:29:54 +00:00
jperkin
eeedc7cc4a Move bzip2 and zlib buildlink3 out of the png PKG_OPTION check, they are
unconditional dependencies.
2014-03-19 10:16:33 +00:00
obache
221f0f5d77 Bump PKGREVISION to refrect png as optional. 2014-03-15 01:43:05 +00:00
drochner
ce7ab79180 make the optional-png logics work 2014-03-14 19:39:52 +00:00
ryoon
0b05d63141 Make png dependency as option, and move option to options.mk
Revert bump of BUILDLINK_ABI_DEPENDS.freetype2
2014-03-14 14:54:02 +00:00
obache
2ed555db0e To get USE_BUILTIN.freetype2, builtin.mk must be included. 2014-03-14 13:43:17 +00:00
ryoon
8e275e6108 graphics/png should be included when non-builtin freetype2.
Pointed out by obache@, thank you.
2014-03-14 13:38:20 +00:00
ryoon
cbf190eabe graphics/png is also needed now 2014-03-14 13:12:34 +00:00
spz
265337b551 security update, upstream short changelog ('here' being releasenotes):
FreeType 2.5.3
2014-03-08

FreeType 2.5.3 has been released. All users should upgrade due to fixed
vulnerability in the CFF driver (CVE-2014-2240).

Its main new feature is much enhanced support of auto-hinting SFNT fonts
(i.e., TrueType and CFF fonts) due to the use of the HarfBuzz library.
A more detailed description of this and other changes can be found here.

FreeType 2.5.2
2013-12-08

FreeType 2.5.2 has been released. It fixes a serious bug introduced
in version 2.5.1; all users should upgrade.

A listing of the changes can be found here.

FreeType 2.5.1
2013-11-25

FreeType 2.5.1 has been released, providing three major new features.

   - Support for the WOFF font format, contributed by Behdad Esfahbod.
   - The auto-hinter now supports Hebrew, together with improved support
     for Cyrillic and Greek.
   - The directory layout of the (installed) FreeType header files has
     been simplified.

Among other changes I want to mention that FreeType's TrueType debugger
(ttdebug) has been made more versatile. An exhaustive list of changes
can be found here.

FreeType 2.5
2013-06-19

FreeType 2.5 has been released. A major new feature is support for
color embedded bitmaps (eg. color emoji), contributed by Behdad Esfahbod
on behalf of Google. Additionally, Adobe's CFF engine is now the default,
which makes a good reason to change from the 2.4.x to the 2.5.x series.

On the technical side, the property API to access FreeType module
parameters (FT_Property_Set and FT_Property_Get) is now declared as
stable.

As usual, see this file for the complete release notes, which give
more details. And we have again blog entries from Adobe and Google.

FreeType 2.4.12
2013-05-08

FreeType 2.4.12 has been released. A major new feature is a new parsing
and hinting engine for CFF fonts, contributed by Adobe in collaboration
with Google. It was my job the last few months to fully adapt the code
to FreeType, and we are very pleased with the results. You might also
read the blog entries from Adobe and Google.

In connection with the new CFF engine, the demo programs, especially
ftview and ftdiff, have been improved a lot; as usual, more details
on the changes can be found in the release notes.
2014-03-13 23:26:35 +00:00
schmonz
ac9defc63c Let naive configure scripts find freetype-config (needed for latest php55-gd). 2014-01-12 21:19:33 +00:00
wiz
d33dfdeb7c Reset maintainer for resigned developers. 2013-12-23 11:57:02 +00:00
adam
7e06744336 FreeType 2.4.12 has been released. A major new feature is a new parsing and hinting engine for CFF fonts, contributed by Adobe in collaboration with Google. It was my job the last few months to fully adapt the code to FreeType, and we are very pleased with the results. You might also read the blog entries from Adobe and Google.
In connection with the new CFF engine, the demo programs, especially ftview and ftdiff, have been improved a lot; as usual, more details on the changes can be found in the release notes.
2013-08-04 10:38:01 +00:00
tron
2896f4fdd3 Try to fix the fallout caused by the fix for PR pkg/47882. Part 1:
Reduce "freetype2" API dependence to version 2.4.5 which is what
NetBSD 6.1 and NetBSD-current ship with. This version is new enough
even for the latest "pango" package.

This fixes problems under NetBSD-current where pkgsrc tried to use
the native "fontconfig" and pkgsrc "freetype2" which doesn't work
very well.
2013-06-04 18:02:58 +00:00
tron
a73780dfa5 Bump the required API version as well to enforce the new version
at build time.
2013-06-03 15:23:44 +00:00
wiz
c83ffb8583 Bump freetype2 and fontconfig dependencies to current pkgsrc versions,
to address issues with NetBSD-6(and earlier)'s fontconfig not being
new enough for pango.

While doing that, also bump freetype2 dependency to current pkgsrc
version.

Suggested by tron in PR 47882
2013-06-03 10:04:30 +00:00
wiz
d7fa1d5b16 Update to 2.4.11:
CHANGES BETWEEN 2.4.10 and 2.4.11

  I. IMPORTANT BUG FIXES

    - Some vulnerabilities in the  BDF implementation have been fixed.
      Users of this font format should upgrade.


  II. IMPORTANT CHANGES

    - Subpixel  hinting support  has been  contributed by  Infinality,
      based on Greg Hitchcock's whitepaper at

        http://www.microsoft.com/typography/cleartype/truetypecleartype.aspx

      Originally, it was a separate patch available from

        http://www.infinality.net/blog/

      and which has been integrated.

      Note that  ClearType support is not  completely implemented!  In
      particular,  full support  for the  options `compatible_widths',
      `symmetrical_smoothing,  and  `bgr'  (via the  GETINFO  bytecode
      instruction) is missing.

      Activation of  subpixel hinting  support can be  controlled with
      the `TT_CONFIG_OPTION_SUBPIXEL_HINTING' configuration option; it
      is switched off by default.  This feature is still experimental;
      we welcome test reports!

    - Support for OpenType collections (OTC) has been added.

    - Pure CFF fonts within an SFNT wrapper are now supported.


  III. MISCELLANEOUS

    - Minor rendering improvements to the auto-hinter.

    - `FT_GlyphSlot_Oblique' now uses a shear angle of 12°.

    - Experimental support  to handle `property modules',  for example
      to control the  behaviour of the auto-hinter.   The API consists
      of two new functions, `FT_Property_Set' and `FT_Property_Get'.

      The code is  still subject to change and should  not be used for
      production.

    - The `ftdiff' demo program now supports UTF-8 encoded input files
      for option `-f'.

    - Using keys `r' and `R', you can now adjust the stroker radius in
      the `ftview' demo program.

    - Other, minor fixes and improvements.
2013-01-06 00:38:13 +00:00
asau
08f35c7155 Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-06 14:10:39 +00:00
drochner
9dce0dba5d update to 2.4.10
changes:
-bugfix: Incremental glyph loading as needed by ghostscript was broken
-minor other improvements
2012-07-02 16:48:24 +00:00
joerg
9765e41589 Drop imake-check logic from X11 components' builtin.mk.
Always use xorg-cf-files and imake from pkgsrc, replacing xpkgwedge.
Always install man pages, not cat pages when using imake.
Unify the various imake PLIST variables in preparation for dropping.
Adjust xbattbar for the new expectations.
2012-03-19 12:34:12 +00:00
drochner
27821a278c update to 2.4.9
changes:
-fix many cases of possible memory corruption by malicious font files
 (CVE-2012-1126...-1144)
-minor fixes and feature improvements
2012-03-09 10:41:14 +00:00
drochner
aa0b10cf02 update to 2.4.8
changes:
-fixed vulnerabilities in handling CID-keyed PostScript fonts
 (CVE-2011-3439)
-new API 'FT_Get_PS_Font_Value'
2011-11-15 19:42:17 +00:00
sbd
04daa2f1b8 Recursive bump for graphics/freetype2 buildlink addition. 2011-11-01 06:00:33 +00:00
sbd
6867d3f9e1 Add missing archivers/bzip2 buildlink
Bump PKGREVISION
2011-11-01 05:57:41 +00:00
tez
e4ddcc7416 update to 2.4.7 fixes SA46575 (CVE-2011-3256)
CHANGES BETWEEN 2.4.6 and 2.4.7

I. IMPORTANT BUG FIXES
 - Some vulnerabilities in handling Type 1 fonts have been fixed;
   see CVE-2011-3256.

II. MISCELLANEOUS
 - FreeType now properly handles ZapfDingbats glyph names while
   constructing a Unicode character map (for fonts which don't have one).
2011-10-26 19:24:45 +00:00
cheusov
86a63e1287 Fixed: build failure on 5.99.55
Update to 2.4.6, No answer from maintainer.

 CHANGES BETWEEN 2.4.5 and 2.4.6

  I. IMPORTANT BUG FIXES

    - For TrueType based fonts, the ascender and descender values were
      incorrect sometimes  (off by a pixel if the ppem value was not a
      multiple of 5).   Depending on the use you might now  experience
      a different  layout; the  change should  result in  better, more
      consistent line spacing.

    - Fix CVE-2011-0226  which causes a  vulnerability while  handling
      Type 1 fonts.

    - BDF fonts  containing  glyphs with negative values  for ENCODING
      were  incorrectly  rejected.  This  bug has  been introduced  in
      FreeType version 2.2.0.

    - David Bevan contributed a major revision of the FreeType stroker
      code:

      . The behaviour of FT_STROKER_LINEJOIN_BEVEL has been corrected.

      . A new  line join style,  FT_STROKER_LINEJOIN_MITER_FIXED,  has
        been introduced to support PostScript and PDF miter joins.

      . FT_STROKER_LINEJOIN_MITER_VARIABLE  has been introduced ches has
        been fixed.


  II. MISCELLANEOUS

      - SFNT bitmap fonts which contain an outline glyph for `.notdef'
        only no longer set the FT_FACE_FLAG_SCALABLE flag.

CHANGES BETWEEN 2.4.4 and 2.4.5

  I. IMPORTANT BUG FIXES

    - A rendering regression  for second-order B#zier curves  has been
      fixed, introduced in 2.4.3.


  II. IMPORTANT CHANGES

    - If autohinting  is not  explicitly disabled,  FreeType now  uses
      the autohinter if  a TrueType based font doesn't  contain native
      hints.

    - The load flag FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH  has been made
      redundant and  is simply ignored;  this means that FreeType  now
      ignores the global advance width value in TrueType fonts.


  III. MISCELLANEOUS

    - `FT_Sfnt_Table_Info' can now return the number of SFNT tables of
      a font.

    - Support for PCF files compressed with bzip2 has been contributed
      by Joel  Klinghed.  To  make this  work, the  OS must  provide a
      bzip2 library.

    - Bradley  Grainger  contributed  project  and  solution  files in
      Visual Studio 2010 format.

    - Again some fixes to better handle broken fonts.
2011-08-03 08:25:41 +00:00