Public bug reported: Ubuntu release: Ubuntu 24.04 LTS (Noble Numbat) Package: fonts-ricty- diminished Version: 4.1.1-4
Problem description The advance widths of the following two characters are incorrectly set to 1: U+2060 WORD JOINER U+FEFF ZERO WIDTH NO-BREAK SPACE (BOM) According to the Unicode Standard, U+2060 is a zero-width format character, and U+FEFF is defined as ZERO WIDTH NO-BREAK SPACE. Therefore, both characters should have zero advance width. See Unicode Standard, Chapter 23, "Word Joiner": https://www.unicode.org/versions/latest/ch23.pdf This incorrect width also affects Fontconfig's spacing detection. Reproduction and verification I used the following command to check the font's Fontconfig properties: --- fc-query -f '%{family}\n%{spacing}\n' RictyDiminished-Regular.ttf --- The following results were obtained on Ubuntu 24.04 LTS: State U+2060 advance width U+FEFF advance width Fontconfig spacing Before correction 1 1 Unset After correction 0 0 90 (DUAL) Setting both advance widths to zero changes Fontconfig's spacing result from unset to 90 (DUAL), indicating a dual-width monospaced font with half-width and full-width characters. Proposed fix The following FontForge script sets both advance widths to zero: --- Open($1) Select(0u2060) SetWidth(0) Select(0uFEFF) SetWidth(0) Generate($1) --- I have confirmed that applying these changes to Ricty Diminished 4.1.1 produces the corrected advance widths and the expected Fontconfig spacing result on Ubuntu 24.04 LTS. Packaging proposal I tested the correction using FontForge 20230101 (build date: 2024-03-31) on Ubuntu 24.04 LTS. The script can be saved as debian/fix-ricty.pe and executed against a TTF file as follows: --- fontforge -script debian/fix-ricty.pe RictyDiminished-Regular.ttf --- In debian/rules, the following override provides an example of applying the script to the installed TTF files: --- override_dh_install: dh_install find debian/fonts-ricty-diminished -type f -iname '*.ttf' -exec \ fontforge -script debian/fix-ricty.pe {} \; --- The fontforge-nox package could be added to Build-Depends to provide FontForge. Long-term maintenance Although upstream development has ended, these issues can be addressed with small changes to the Ubuntu packaging. I hope Ubuntu will continue to provide and maintain this package. ProblemType: Bug DistroRelease: Ubuntu 24.04 Package: fonts-ricty-diminished 4.1.1-4 ProcVersionSignature: Ubuntu 7.0.0-43.43~24.04.1-generic 7.0.14 Uname: Linux 7.0.0-43-generic x86_64 ApportVersion: 2.28.3-0ubuntu0.1 Architecture: amd64 CasperMD5CheckResult: pass CurrentDesktop: ubuntu:GNOME Date: Sat Nov 21 19:43:20 2026 Dependencies: InstallationDate: Installed on 2025-10-12 (405 days ago) InstallationMedia: Ubuntu 24.04.2 LTS "Noble Numbat" - Release amd64 (20250215) PackageArchitecture: all ProcEnviron: LANG=ja_JP.UTF-8 PATH=(custom, no user) SHELL=/bin/bash TERM=xterm-256color XDG_RUNTIME_DIR=<set> SourcePackage: fonts-ricty-diminished UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: fonts-ricty-diminished (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug noble wayland-session -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2175462 Title: incorrect advance widths of U+2060 and U+FEFF affect Fontconfig spacing detection To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/fonts-ricty-diminished/+bug/2175462/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
