[Fedora-i18n-bugs] [Bug 707973] New: packaging bug in liberation-fonts-ttf-1.06.0.20100721.tar.gz

bugzilla at redhat.com bugzilla at redhat.com
Thu May 26 13:19:15 UTC 2011


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.

Summary: packaging bug in liberation-fonts-ttf-1.06.0.20100721.tar.gz

https://bugzilla.redhat.com/show_bug.cgi?id=707973

           Summary: packaging bug in
                    liberation-fonts-ttf-1.06.0.20100721.tar.gz
           Product: Fedora
           Version: rawhide
          Platform: All
        OS/Version: Windows
            Status: NEW
          Severity: medium
          Priority: unspecified
         Component: liberation-fonts
        AssignedTo: psatpute at redhat.com
        ReportedBy: vinschen at redhat.com
         QAContact: extras-qa at fedoraproject.org
                CC: petersen at redhat.com,
                    fonts-bugs at lists.fedoraproject.org,
                    psatpute at redhat.com, i18n-bugs at lists.fedoraproject.org
    Classification: Fedora
      Story Points: ---


Description of problem:

There's a bug in the Liberation-Mono fonts hosted at
https://fedorahosted.org/liberation-fonts

The font header of the Liberation-Mono fonts in the
liberation-fonts-ttf-1.06.0.20100721.tar.gz file are marked as
variable sized fonts.  This disallows usage of the Liberation-Mono
fonts in Windows applications which deliberately request fixed size
fonts, for instance terminal applications.

This is not the case with the liberation fonts from Fedora 14, btw.
The Liberation-Mono fonts from the F14 package
liberation-mono-fonts-1.06.0.20100721-3.fc14.noarch
are correctly marked as fixed size fonts.

Version-Release number of selected component (if applicable):

liberation-fonts-ttf-1.06.0.20100721.tar.gz

How reproducible:
Steps to Reproduce:

1. Install the liberation-mono fonts under Windows

2. Create a test application

$ cat > cf.c <<EOF
#include <stdio.h>
#include <windows.h>

int
main ()
{
  CHOOSEFONT font;
  LOGFONT lf;

  memset (&font, 0, sizeof font);
  memset (&lf, 0, sizeof lf);
  font.lStructSize = sizeof font;
  font.lpLogFont = &lf;
  if (ChooseFont (&font))
    printf ("lfPitchAndFamily = 0x%x\n", font.lpLogFont->lfPitchAndFamily);
  return 0;
}
EOF

2. Under Cygwin or MingW:  gcc -mwindows cf.c -o cf

3. Run ./cf, choose Liberation Mono as font and press the OK button.

Actual results:

  With the Liberation-Mono fonts from
 
https://fedorahosted.org/liberation-fonts/liberation-fonts-ttf-1.06.0.20100721.tar.gz
  the output is

    lfPitchAndFamily = 0x32

  The two low-order bits of this value specify the pitch of the font
  and can be one of

    DEFAULT_PITCH  = 0
    FIXED_PITCH    = 1
    VARIABLE_PITCH = 2

  So the font is marked as fixed size font.

Expected results:

  The same test application used with the Liberation-Mono fonts from
  liberation-mono-fonts-1.06.0.20100721-3.fc14.noarch prints

    lfPitchAndFamily = 0x31

  This is the correct value.

So my request is to replace the package
https://fedorahosted.org/liberation-fonts/liberation-fonts-ttf-1.06.0.20100721.tar.gz
with a new one in which the Liberation-Mono fonts are correctly
marked as fixed size fonts.


Thanks,
Corinna

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the i18n-bugs mailing list