Bug 522056

Summary: wrong match of fonts (non-)proportional
Product: [Fedora] Fedora Reporter: Marcela Mašláňová <mmaslano>
Component: openoffice.orgAssignee: David Tardon <dtardon>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: behdad, caolanm, fonts-bugs, pnemade
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: 3.1.1-19.8.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-23 10:49:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Description Flags
test case none

Description Marcela Mašláňová 2009-09-09 10:19:51 UTC
Wrong match of fonts:
fc-match "Courier 10 Pitch"
DejaVuSans.ttf: "DejaVu Sans" "Book"

The font which provides Courier is not proportional. This was fixed by installation of xorg-x11-fonts-Type1.noarch

Comment 1 Nicolas Mailhot 2009-09-09 10:51:18 UTC
"10 Pitch" is not a standard font style name, so you're not requesting the "Courier" font in 10 size but the "Courier 10 Pitch" font in any size, which is not a font name popular enough to be worth aliasin IMHO

Try fc-match "Courier" instead

Comment 2 Marcela Mašláňová 2009-09-11 08:04:05 UTC
I found this problem in ooimpress which match fonts incorrectly. It matches Courier from wrong (non-proportional) font package. I still believe this mapping should be fixed in this application.

Comment 3 David Tardon 2009-09-15 07:49:28 UTC
It's actually a bug in openoffice.org: not all font attributes are transferred through DrawingLayer, so font match will find wrong font later.

Comment 4 David Tardon 2009-09-15 07:53:00 UTC
Created attachment 361046 [details]
test case

The first line uses "Courier 10 Pitch", the second one "DejaVu Sans" and the third "DejaVu Sans Mono". If the font package specified in description is not installed, the font of the first line is (incorrectly) matched to "DejaVu Sans" instead of "DejaVu Sans Mono" as it should be.

Comment 5 David Tardon 2009-09-15 08:20:49 UTC
Fix checked in, will be in >= 3.1.1-19.8 .