Details

[Home]

Issue of the Implementation # V0031

Brief

FT_Get_PFR_Metrics returns incorrect value for non-PFR fonts

Detailed Description

The description of FT_Get_PFR_Metrics states that
If the input face is not a PFR, this function will return an error.

However if FT_Get_PFR_Metrics is called for a non-PFR font (e.g. FreeMono.ttf) and its other arguments are not NULL, it returns 0 (i.e., no error). The attached example demonstrates this problem.

Problem location(s) in the standard

Linux Standard Base Desktop Specification 3.2, Chapter 12. Libraries, 12.1 Interfaces for libfreetype that refers FreeType-2.1.10 API Reference, section "PFR Fonts"

Reproducing

  1. Unpack the attached archive
  2. Build the sample C program contained in it
  3. Run the program as follows:
    ./ft_get_pfr_metrics FreeMono.ttf 1 1 1 1

Component

freetype 2.1.10 or later

Accepted

freetype-devel mailing list, #49, 2008.12

Status

Fixed in freetype 2.3.8

[Home]