http://cgit.freedesktop.org/~tagoh/fontconfig/commit/?h=bz38737

This repo contains the initial patch to propose a fix of this issue.
I didn't implement anything about CMap this time. because dealing with it in 
fontconfig may be overkill. applications who wants to use this feature should 
knows about it well. they could set the lang into FcPattern instead.

Please test. if there are no problems or concerns, I'll merge it into
master.

Thanks,

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

Title:
  Libreoffice chooses incorrect font weight

Status in Fontconfig - Font Configuration Library:
  In Progress
Status in Ubuntu Font Family:
  Confirmed
Status in “fontconfig” package in Ubuntu:
  Confirmed
Status in “libreoffice” package in Ubuntu:
  Confirmed
Status in “ubuntu-font-family-sources” package in Ubuntu:
  Fix Released
Status in “fontconfig” source package in Quantal:
  Confirmed
Status in “libreoffice” source package in Quantal:
  Confirmed
Status in “ubuntu-font-family-sources” source package in Quantal:
  Fix Released
Status in “fontconfig” source package in Raring:
  Triaged
Status in “libreoffice” source package in Raring:
  Triaged
Status in “ubuntu-font-family-sources” source package in Raring:
  Fix Released

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/fontconfig/+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