In broad terms there is the simple metadata (fontname + boolean for
italic + boolean for bold);  and there is the complex metadata (name,
family name, numerical slant, numerical weight, …).  Various
applications; including FontConfig IIRC makes errornous presumptions
when mixing those.

Now, from a UFF PoV, we may have to change the mapping method to cope
with certain software like MSIE; but that would none-the-less still
leave the handling of "separate" metadatas broken.  The only string that
is /supposed/ to be globally unique is the Postscript Name; which
OpenType and CSS mandate, and which Fontconfig currently junks:

  https://bugs.freedesktop.org/show_bug.cgi?format=multiple&id=38737

Adding that to FontConfig as an available matching spec would at least
allow debugging by canonically knowing what you're getting.

** Bug watch added: freedesktop.org Bugzilla #38737
   https://bugs.freedesktop.org/show_bug.cgi?id=38737

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/1054204

Title:
  Libreoffice chooses incorrect font weight

Status in Ubuntu Font Family:
  Confirmed
Status in “libreoffice” package in Ubuntu:
  Confirmed
Status in “ubuntu-font-family-sources” package in Ubuntu:
  Confirmed
Status in “libreoffice” source package in Quantal:
  Confirmed
Status in “ubuntu-font-family-sources” source package in Quantal:
  Confirmed

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/fonts/truetype
  /ubuntu-font-family/ and opening Ubuntu-M.ttf. In Element -> Font
  Info, you can fix the family on the first page, and then export the
  font with File -> Generate Fonts, selecting the type "TrueType". Save
  to somewhere in your home folder first, accept the warnings, then in a
  terminal window / command line type:

  sudo mv Ubuntu-M.ttf /usr/share/fonts/truetype/ubuntu-font-family
  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+console from quantal I
  have the added "Medium" font weight:-

  /usr/share/fonts/truetype/ubuntu-font-family/UbuntuMono-B.ttf
  /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-RI.ttf
  /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-MI.ttf
  /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-LI.ttf
  /usr/share/fonts/truetype/ubuntu-font-family/UbuntuMono-RI.ttf
  /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-M.ttf
  /usr/share/fonts/truetype/ubuntu-font-family/UbuntuMono-BI.ttf
  /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-B.ttf
  /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-L.ttf
  /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-C.ttf
  /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-BI.ttf
  /usr/share/fonts/truetype/ubuntu-font-family/UbuntuMono-R.ttf
  /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf

  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~rc2-1ubuntu5
  ProcVersionSignature: Ubuntu 3.5.0-15.22-generic 3.5.4
  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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-font-family/+bug/1054204/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to