canonical / Ubuntu-Sans-fonts

Other
57 stars 4 forks source link

Ubuntu symbol lost since 0.863 #123

Open cpaelzer opened 2 months ago

cpaelzer commented 2 months ago

Hi, the font used to contain a Ubuntu symbol that was nice to have for some cases. With the Ubuntu Noble upgrade I'm missing the Ubuntu Unicode symbol.

I thought it might have been my setup, but I now have confirmation from 1 other Noble and 1 other Mantic user that it is missing - while I checked and on Jammy it is still present as of now.

To re-check you want to see F0E0-1F in a Ubuntu font for example via

  1. go to http://www.tamasoft.co.jp/en/general-info/unicode.html
  2. scroll to the line starting with F0E0
  3. go into the browsers debugger and change the style to font-family: Ubuntu, "times new roman", times, roman, serif;
  4. You will see the symbol in the last column

To simplify, I've created a simple test html you can use when reporting this to launchpad. => https://bugs.launchpad.net/ubuntu/+source/fonts-ubuntu/+bug/2064576/+attachment/5774009/+files/TestPrivateAreaUbuntuFont.html

Here a few images showing the problem in Noble compared to jammy.

  1. Noble: table-noble
  2. Jammy: ubuntu-unicode-was-set-jammy

This was using https://en.wikipedia.org/wiki/Private_Use_Areas as discussed in e.g. https://askubuntu.com/questions/144379/ubuntu-logo-into-unicode-table. That is why you'd only see it in the Ubuntu font - which is fine, but why was it lost there?

AFAICS the changelog of the package had no mention of this being dropped intentionally. But it had a few "New upstream version", yet checking that was not insightful either to decide if that was intentional. In my second try to track it down better (thanks @seb128 to confirm it is this project here) I found it in a bisect. The symbol is there, for example in fonts/ttf/Ubuntu-Medium.ttf up until:

commit 04d2bbb775d955bf38ac30cce66b9b18e5a5354a
Author: David Ross <6578861+djrrb@users.noreply.github.com>
Date:   Tue Jan 10 07:03:26 2023 -0500

    0.863

And this change now came into Ubuntu since Noble when >=0.863 was merged

 fonts-ubuntu | 0.83-6ubuntu1              | jammy    | source, all
 fonts-ubuntu | 0.869+git20240321-0ubuntu1 | noble    | source, all

P.S. This might have been an intentional change, in that case the bug might still serve as a place to find that information for others.

djrrb commented 2 months ago

Just confirming that I did intentionally remove the PUA-encoded Ubuntu symbol, wordmark, and special hinting glyphs, upon request from the folks at Canonical. Sorry for not indicating that in the changelog.