[UIFe] Tweak Arabic font

Bug #1896397 reported by Gunnar Hjalmarsson
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
language-selector (Ubuntu)
Fix Released
Medium
Gunnar Hjalmarsson
Focal
Fix Released
Medium
Gunnar Hjalmarsson

Bug Description

[Impact]

This is a follow-up of bug #1891733. After the new default font for Arabic had made it to focal, we got some additional feedback at <https://discourse.ubuntu.com/t/14573>. After further discussion, trial and error, and multiple changes in groovy it has landed in a consensus to make these adjustments:

* Rename the .conf file from 69- to 56-

* Drop binding="strong"

* Drop the specification for monospace, and with that fall back
  to DejaVu for Arabic monospace

The significance of the changes, which motivates the proposed SRU, is made up of:

1. Use DejaVu Sans Mono as default Arabic font for monospace
   instead of the previous non-mono font

2. No longer conflicts with Kubuntu's custom font configuration

[Test case]

* Install the language-selector-{gnome,common} packages
  from focal-proposed.

* Open the Language Support tool and install Arabic.

* Open a terminal window, run the below commands and confirm
  that you get the same output:

  $ LC_CTYPE=ar_EG.UTF-8 fc-match
  NotoSansArabicUI-Regular.ttf: "Noto Sans Arabic UI" "Regular"
  $ LC_CTYPE=ar_EG.UTF-8 fc-match monospace
  DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"

[Regression risk]

For some users this will change the default monospace font for rendering Arabic. That's the point. :)

The change will only affect users with an Arabic locale. The risk that other users would be affected by the change is low.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in language-selector (Ubuntu):
status: New → Confirmed
Revision history for this message
Iain Lane (laney) wrote :

OK by me, please go ahead.

Changed in language-selector (Ubuntu):
status: Confirmed → Triaged
Changed in language-selector (Ubuntu Focal):
assignee: nobody → Gunnar Hjalmarsson (gunnarhj)
importance: Undecided → Medium
status: New → Triaged
Changed in language-selector (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package language-selector - 0.208

---------------
language-selector (0.208) groovy; urgency=medium

  * fontconfig/69-language-selector-ar.conf (LP: #1896397):
    - Replace "Noto Sans Arabic UI" with "Noto Naskh Arabic UI" for
      sans-serif
    - Drop the specification for monospace, and with that fall back to
      DejaVu for Arabic monospace

 -- Gunnar Hjalmarsson <email address hidden> Mon, 21 Sep 2020 13:40:14 +0200

Changed in language-selector (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Problem:

$ LC_CTYPE=ar_EG.UTF-8 fc-match -a monospace | head -8
NotoSans-Regular.ttf: "Noto Sans" "Regular"
NotoSans-Bold.ttf: "Noto Sans" "Bold"
NotoSans-Italic.ttf: "Noto Sans" "Italic"
NotoSans-BoldItalic.ttf: "Noto Sans" "Bold Italic"
NotoNaskhArabicUI-Regular.ttf: "Noto Naskh Arabic UI" "Regular"
NotoNaskhArabicUI-Bold.ttf: "Noto Naskh Arabic UI" "Bold"
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
DejaVuSansMono-Bold.ttf: "DejaVu Sans Mono" "Bold"

Looks like DejaVu must be specified explicitly for monospace.

Changed in language-selector (Ubuntu):
status: Fix Released → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package language-selector - 0.209

---------------
language-selector (0.209) groovy; urgency=medium

  * fontconfig/69-language-selector-ar.conf (LP: #1896397):
    - Specify "DejaVu Sans Mono" explicitly for monospace

 -- Gunnar Hjalmarsson <email address hidden> Mon, 21 Sep 2020 18:54:34 +0200

Changed in language-selector (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Better handling of the issue mentioned in comment #5:

* Rename the .conf file so the name starts with 56- instead of
  69- (makes it lower than 57-dejavu-sans.conf)

* Drop 'binding="strong"'

Changed in language-selector (Ubuntu):
status: Fix Released → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package language-selector - 0.210

---------------
language-selector (0.210) groovy; urgency=medium

  * fontconfig/69-language-selector-ar.conf (LP: #1896397):
    - Rename to 56-language-selector-ar.conf
    - Drop binding="strong"
    - Drop monospace section

 -- Gunnar Hjalmarsson <email address hidden> Fri, 25 Sep 2020 21:18:08 +0200

Changed in language-selector (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Last change: Back to Noto Sans Arabic UI for sans-serif.

description: updated
Changed in language-selector (Ubuntu):
status: Fix Released → Fix Committed
Changed in language-selector (Ubuntu Focal):
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package language-selector - 0.211

---------------
language-selector (0.211) groovy; urgency=medium

  * fontconfig/56-language-selector-ar.conf (LP: #1896397):
    - Change back to "Noto Sans Arabic UI" for sans-serif instead of
      "Noto Naskh Arabic UI"

 -- Gunnar Hjalmarsson <email address hidden> Sun, 27 Sep 2020 22:02:38 +0200

Changed in language-selector (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Gunnar, or anyone else affected,

Accepted language-selector into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/language-selector/0.204.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in language-selector (Ubuntu Focal):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-focal
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Verified the test case using language-selector-{common,gnome} 0.204.2 from focal-proposed.

tags: added: verification-done verification-done-focal
removed: verification-needed verification-needed-focal
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package language-selector - 0.204.2

---------------
language-selector (0.204.2) focal; urgency=medium

  * fontconfig/69-language-selector-ar.conf (LP: #1896397):
    - Rename to 56-language-selector-ar.conf
    - Drop binding="strong"
    - Drop the specification for monospace, and with that fall back to
      DejaVu for Arabic monospace

 -- Gunnar Hjalmarsson <email address hidden> Sun, 27 Sep 2020 22:07:12 +0200

Changed in language-selector (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for language-selector has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.