Libreoffice chooses incorrect font weight
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fontconfig |
Fix Released
|
Wishlist
|
|||
Ubuntu Font Family |
Invalid
|
Undecided
|
Unassigned | ||
fontconfig (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
ubuntu-font-family-sources (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Quantal |
Fix Released
|
Undecided
|
Unassigned | ||
Raring |
Fix Released
|
High
|
Unassigned |
Bug Description
How to fix the problem:
See comments on wrong "Ubuntu Light" font family being specified in the information of Ubuntu-M.ttf.
You can fix the problem manually by installing fontforge program, going to Open dialog, navigating in it to /usr/share/
sudo mv Ubuntu-M.ttf /usr/share/
sudo dpkg-reconfigure fontconfig
Attached to this bug report is also a branch of the Ubuntu packaging that includes this manually modified Ubuntu-M.ttf, since the sources seem not to be editable with free tools.
Original description:
After installing the Ubuntu Font 0.80-0ubuntu3+
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
If I install this font and choose "Ubuntu Light" in LibreOffice, it actually picks the "Medium" font weight. If I remove the medium font weight files and restart LibreOffice it chooses the right weight again. It seems related to bug 744812.
Screenshots show the issue.
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: libreoffice-writer 1:3.6.1~
ProcVersionSign
Uname: Linux 3.5.0-15-generic x86_64
ApportVersion: 2.5.2-0ubuntu4
Architecture: amd64
Date: Fri Sep 21 17:34:30 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120102)
SourcePackage: libreoffice
UpgradeStatus: No upgrade log present (probably fresh install)
description: | updated |
Changed in ubuntu-font-family-sources (Ubuntu Quantal): | |
milestone: | none → ubuntu-12.10 |
Changed in fontconfig (Ubuntu Quantal): | |
importance: | Undecided → High |
Changed in fontconfig: | |
importance: | Unknown → Wishlist |
status: | Unknown → Confirmed |
Changed in libreoffice (Ubuntu Quantal): | |
milestone: | ubuntu-12.10 → quantal-updates |
Changed in fontconfig (Ubuntu Quantal): | |
milestone: | none → quantal-updates |
status: | New → Confirmed |
Changed in fontconfig: | |
status: | Confirmed → In Progress |
Changed in fontconfig: | |
status: | In Progress → Fix Released |
no longer affects: | libreoffice (Ubuntu Quantal) |
no longer affects: | libreoffice (Ubuntu Raring) |
no longer affects: | fontconfig (Ubuntu Quantal) |
no longer affects: | fontconfig (Ubuntu Raring) |
Changed in libreoffice (Ubuntu): | |
milestone: | quantal-updates → none |
Truetype/Opentype files have various sets of metadata, not all of which can be directly queried/matched via FontConfig.
In particular, both the OpenStep and CSS font-matching schemes require the "PostScript name" as the canonical form of first attempt:
http:// www.w3. org/TR/ css3-fonts/ #ltfont- face-namegt
"the unique name used with local() specifies a single font, not an entire font family. Defined in terms of OpenType font data, the Postscript name is found in the font's name table, in the name record with nameID = 6 (see [OPENTYPE] for more details). The Postscript name is the commonly used key for all fonts on OSX and for Postscript CFF fonts under Windows. The full font name (nameID = 4) is used as a unique key for fonts with TrueType glyphs on Windows."
Previously patch(es) were offered by Isaiah Beerbower and Evgeniy Stepanov:
http:// lists.freedeskt op.org/ archives/ fontconfig/ 2008-June/ thread. html#2957 lists.freedeskt op.org/ archives/ fontconfig/ attachments/ 20080605/ c063ded6/ attachment. diff
http://
but these do not appear to have been replied. A request is made during the conversation to file a bug and attach the files.