./fonts/ruby-ttfunk, TrueType Font Metrics Parser

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.8.0, Package name: ruby32-ttfunk-1.8.0, Maintainer: pkgsrc-users

TTFunk is a TrueType font parser written in pure ruby.


Required to run:
[lang/ruby26-base]

Required to build:
[pkgtools/cwrappers]

Master sites:

Filesize: 83 KB

Version history: (Expand)


CVS history: (Expand)


   2024-03-05 14:25:58 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
fonts/ruby-ttfunk: update to 1.8.0

1.8.0 (2024-03-05)

Fixed

* Corrupted CFF index data

  there was a subtle bug in cff index implementation that resulted in a data
  corruption.  in certain circumstances some items didn't get properly
  encoded.  this happened when items were not previously accessed.

  this resulted, for instance, in missing glyphs.  but only sometimes
  because indexes might've still contain data that shouldn't've been there.
  in combination with incorrect encoding (see further) this resulted in some
  glyphs still being rendered, sometimes even correctly.

  along with the fix a rather large api change landed.  this resulted in
  quite a big diff.

  Alexander Mankuta

* Incorrect CFF encoding in subsets

  TTFunk used to reuse encoding from the original font.  This mapping was
  incorrect for subset fonts which used not just a subset of glyphs but also
  a different encoding.

  A separate issue was that some fonts have empty CFF encoding.  This
  incorrect mapping resulted in encoding that mapped all codes to glyph 0.

  This had impact on Prawn in particular.  PDF spec explicitly says that CFF
  encoding is not to be used in OpenType fonts.  cmap table should directly
  index charstrings in the CFF table.  Despite this PDF renderers still use
  CFF encoding to retrieve glyphs.  So TTFunk has to discard the original
  CFF encoding and supply its own.

  Alexander Mankuta

* maxp table

  The table is now correctly parsed and encoded for both TrueType and
  CFF-based OpenType fonts.

  Cameron Dutro, Alexander Mankuta

* Files are closed sooner

  Files were garbage collected but could stay open for longer than necessary.

  Jon Burgess

* Long date time in the head table

  The created and modified fields we parsed and encoded with incorrect
  endiannes.  Additionally helper methods were added to convert these fields
  to and from Ruby Time.

  Jens Kutilek, Peter Goldstein

* Removed execution permissions on non-executable files

  Keenan Brock

Changes

* Minimum Ruby is 2.7

  Alexander Mankuta

* Performance improvement in subsets construction

  Thomas Leitner

* CI improvememnts

  Peter Goldstein
   2021-10-26 12:28:41 by Nia Alarie | Files touched by this commit (864)
Log message:
fonts: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes
   2021-10-07 16:05:29 by Nia Alarie | Files touched by this commit (864)
Log message:
fonts: Remove SHA1 hashes for distfiles
   2021-01-11 14:34:41 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
fonts/ruby-ttfunk: update to 1.7.0

## 1.7.0

### Changes

* Allow gem installation on Ruby 3.0

  Pavel Lobashov

* Allow TTC files to be read from IO object

  Tom de Grunt
   2020-03-08 16:41:16 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
fonts/ruby-ttfunk: update to 1.6.2.1

Update to ruby-ttfunk to 1.6.2.1.

## [1.6.2.1]

### Fixed

* 1.6.2 gem conains local debuging code. This is the same commit but without
  local changes.

  Alexander Mankuta

## [1.6.2]

### Fixed

* Reverted to pre 1.6 maxp table serialization.

  Cameron Dutro
   2020-01-16 17:07:19 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
fonts/ruby-ttfunk: update to 1.6.1

Update ruby-ttfunk to 1.6.1.

pkgsrc change: add "USE_LANGUAGES= # none".

## [1.6.1]

### Fixed

* Fixed maxp table encoding

  Cameron Dutro

## [1.6.0]

### Added

* OpenType fonts support

  * Added support for CFF-flavored fonts (also known as CID-keyed or OpenType fonts)
  * Added support for the VORG and DSIG tables
  * Improved charset encoding support
  * Improved font metrics calculations in the head, maxp, hhea, hmtx, and os/2 tables
  * Subsetted fonts verified with Font-Validator, fontlint, and Mac OS's Font Book

  Cameron Dutro

* Ruby 2.6 support

  Alexander Mankuta

* JRuby 9.2 support

  Alexander Mankuta

### Removed

* Dropped Ruby 2.1 & 2.2 support

  Alexander Mankuta

* Removed JRuby 9.1 support

  Alexander Mankuta

### Fixed

* Sort name table entries when generating subset font

  Matjaz Gregoric

* Map the 0xFFFF char code to glyph 0 in cmap format 4

  Matjaz Gregoric

* Order tables by tag when generating font subset

  Matjaz Gregoric

* Fix typo in TTFunk::Subset::Unicode#includes?

  Matjaz Gregoric

* Fixe calculation of search_range for font subsets

  Matjaz Gregoric

* Fixed instance variable @offset and @length not initialized

  Katsuya HIDAKA

* Code style fixes

  Katsuya HIDAKA, Matjaz Gregoric, Alexander Mankuta
   2017-06-05 16:24:20 by Takahiro Kambe | Files touched by this commit (2)
Log message:
Update ruby-ttfunkto 1.5.1.

## [1.5.1]

### Fixed

* loca table corruption during subsetting. The loca table serialization code
  didn't properly detect suitable table format.

* Fixed checksum calculation for empty tables.
   2017-03-20 15:48:41 by Takahiro Kambe | Files touched by this commit (3)
Log message:
Update ruby-ttfunk to 1.5.0.

## [1.5.0] - 2017-02-13

### Added

* Support for reading TTF fonts from TTC files

### Changed

* Subset font naming is consistent now and depends on content