Bug 861003

Summary: Liberation Mono is not being recognized as a monospaced font
Product: [Fedora] Fedora Reporter: Andreas Schöneck <as.maps>
Component: liberation-fontsAssignee: Pravin Satpute <psatpute>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: fonts-bugs, i18n-bugs, mfabian, paul, petersen, psatpute
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-05 05:01:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Andreas Schöneck 2012-09-27 09:54:37 UTC
Description of problem:
The Liberation Mono font is not being recognized as a monospaced font under various Windows applications, such as HippoEdit.

Version-Release: liberation-fonts-ttf-2.00.0

How reproducible: Always.

Steps to Reproduce:
1. Open HippoEdit
2. Go to Tools/Options
3. Navigate to Syntax Settings/Basic/Fonts And Colors
4. Be sure that "Show only monospaced fonts" is checked.

Actual results:
Liberation Mono is not shown in the list.

Expected results:
Liberation Mono is shown in the drop down box.

Additional info:
* Using Windows 7 SP1 x86_64
* Using HippoEdit 1.50.776 for Win 64 bit
* Manually removed all old Liberation*.ttf from Windows\Fonts and rebooted prior to installation of version 2.00.0.

Comment 1 Pravin Satpute 2012-09-27 10:51:07 UTC
I can reproduce it. searching for root cause behind this. This is problem of conversion from ttf to .sfd

Comment 2 Pravin Satpute 2012-10-01 11:46:28 UTC
I discussed this on fontforge users list and found reason behind this is LiberationMono has many 0 width characters other than Fixed width 1229.

Presently fontforge does not set isFixedPitch bit if any character has other than decided fixed width. Some applications use this bit to decide font is monospace or not.

Hoping to find any alternative to fix this bit or may be fontforge upstream will fix this bug.

Comment 3 Paul Flo Williams 2012-10-01 12:00:03 UTC
(In reply to comment #2)
> 
> Hoping to find any alternative to fix this bit or may be fontforge upstream
> will fix this bug.

As inconvenient as this is, it is not a bug in FontForge. As I've just posted on the FF users' list, DejaVu Sans Mono handles this in a way that keeps everyone happy. If only the technique was better documented somewhere!

Comment 4 Andreas Schöneck 2012-10-01 12:06:28 UTC
FWIW, I had the problem with some earlier version (I think it was 1.07), being fixed in a minor release (must have been 1.07.1) afterwards - maybe "accidentally".

Anyway, that release (1.07.1) of Liberation Mono was correctly recognized as a monospaced font.

Comment 5 Pravin Satpute 2012-10-03 04:52:54 UTC
(In reply to comment #3)
> 
> As inconvenient as this is, it is not a bug in FontForge. As I've just
> posted on the FF users' list, DejaVu Sans Mono handles this in a way that
> keeps everyone happy. If only the technique was better documented somewhere!

Yeah, its clear. This is not issue with Fontforge but issue with Proprietary font editors not following standards.

I will fix this issues using fontTools. In long term will do necessary changes to make it true Monospace font.

Comment 6 Fedora Update System 2012-10-04 16:13:29 UTC
liberation-fonts-2.00.1-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/liberation-fonts-2.00.1-1.fc18

Comment 7 Fedora Update System 2012-10-04 17:52:47 UTC
Package liberation-fonts-2.00.1-1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing liberation-fonts-2.00.1-1.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-15393/liberation-fonts-2.00.1-1.fc18
then log in and leave karma (feedback).

Comment 8 Andreas Schöneck 2012-10-04 19:10:32 UTC
Release 2.00.1 from this site https://fedorahosted.org/liberation-fonts/ fixes the issue for me.

HippoEdit is able to recognize Liberation Mono as a monospaced font. So is Directory Opus (it allows only monospaced fonts to be used in hex viewer).

Comment 9 Pravin Satpute 2012-10-05 05:01:03 UTC
thanks for confirmation, closing bug