Closed Bug 1835291 Opened 2 years ago Closed 2 years ago

Tofu boxes are shown for some of the Cyrillic group languages if font visibility is set to 1 or 2

Categories

(Core :: Layout: Text and Fonts, defect)

Desktop
All
defect

Tracking

()

RESOLVED INVALID
Tracking Status
firefox-esr102 --- disabled
firefox113 --- disabled
firefox114 --- disabled
firefox115 --- affected

People

(Reporter: sbadau, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fpp:m6])

Attachments

(2 files)

Found in

  • Nighty 115.0a1

Affected versions

  • Nightly 115.0a1

Tested platforms

  • Affected platforms: macOS 12 ,Ubuntu 20.04 x64, and Windows 10.

Preconditions

  • in about:config, set the preference "layout.css.font-visibility.private" to 1.

Steps to reproduce

  1. Open a private window.
  2. Navigate to Wikipedia and look for the following Cyrillic languages: cyrillic extended-b, cyrillic extended-c, cyrillic supplement, glagolitic.
  3. Observe the fonts.

Expected result

  • The fonts should be properly displayed in Private Browsing.

Actual result

During private browsing, the following languages are displaying tofu boxes:

Regression range
This is not a regression, the font visibility preference is set to 3 on all previous versions: ESR, Beta, and Release.

Additional notes

  • The tofu boxes are also displayed in private browsing when the preference "layout.css.font-visibility.private" is set to 2.
  • The tofu boxes are not displayed in normal browsing or when "layout.css.font-visibility.private" is set to 3.

instead of loading 100+ individual wikipedia pages for testing, I specifically built https://arkenfox.github.io/TZP/tests/fontscripts.html for font vis to check for script breakage/support - default is just to check the first 20 chars per script which should be good enough (or you can just check all) - click run, it will color code the tofu, it will provide a summary. There are 129 scripts listed there, if any are missing, let me know and I can add them

Flags: needinfo?(sbadau)

(In reply to Simon Mainey from comment #1)

instead of loading 100+ individual wikipedia pages for testing, I specifically built https://arkenfox.github.io/TZP/tests/fontscripts.html for font vis to check for script breakage/support - default is just to check the first 20 chars per script which should be good enough (or you can just check all) - click run, it will color code the tofu, it will provide a summary. There are 129 scripts listed there, if any are missing, let me know and I can add them

very useful, Thank you!

Flags: needinfo?(sbadau)
Whiteboard: [fpp:m1]
Whiteboard: [fpp:m1]

Rechecked again using the latest Nightly 116.0a1, and:

  • I can no longer see the tofu boxes on macOS 13 while navigating in Private Browsing.
  • On Windows 10 - not an issue as the cyrillic extended-c characters are displayed as tofu boxes not only in private browsing, but also on normal browsing + on other browsers (like Chrome).
  • On Ubuntu 22.04 -I see no issues on the cyrillic extended-b and cyrillic supplement characters but noticed that the issue is reproducing with the glagolitic font.
Whiteboard: [fpp:m6]

.mw-parser-output .script-Cyrs{font-family:"Ponomar Unicode","Ponomar Unicode TT","Acathist","Triodion Unicode","Menaion Unicode","Menaion Unicode TT","Shafarik","Fedorovsk Unicode","Fedorovsk Unicode TT","Monomakh Unicode","Monomakh Unicode TT","Vilnius",BukyVede,"Kliment Std","RomanCyrillic Std","Monomachus","Old Standard","Old Standard TT",Dilyana,Menaion,"Menaion Medieval",Lazov,Code2000,"DejaVu Sans","DejaVu Serif",Code2001,"FreeSerif","TITUS Cyberbit Basic","Charis SIL","Doulos SIL","Chrysanthi Unicode","Bitstream Cyberbit","Bitstream CyberBase",Thryomanes,"Lucida Grande","FreeSans","Arial Unicode MS","Microsoft Sans Serif","Lucida Sans Unicode"}.mw-parser-output .script-Glag{font-family:Shafarik,"Menaion Unicode TT","Menaion Unicode",Vikidemia,Bukyvede,FreeSerif,Ja,Unicode5,"TITUS Cyberbit Basic","Noto Sans Glagolitic","Segoe UI Historic","Segoe UI Symbol"}

Appears as Tofu for me in Ubuntu 22.04 in regular and PBM. I'm guessing that Noto Sans Glagolitic (which is a langpack font) is installed locally. Just to confirm, Simona could you check 22.04 and confirm that it reproduces with font-visibility.private set to 1 but not when it is set to 2?

Flags: needinfo?(sbadau)

(In reply to Tom Ritter [:tjr] from comment #4)

Appears as Tofu for me in Ubuntu 22.04 in regular and PBM. I'm guessing that Noto Sans Glagolitic (which is a langpack font) is installed locally. Just to confirm, Simona could you check 22.04 and confirm that it reproduces with font-visibility.private set to 1 but not when it is set to 2?

Checked on my Ubuntu 22.04 machine, and indeed, "Noto Sans Glagolitic" language font is installed locally.
I can confirm that it reproduces with layout.css.font-visibility.private set to 1 and it's not reproducible when the preference is set to 2. Please see the comparison screenshot.

Flags: needinfo?(sbadau)

Okay thanks, the font update commits fixed the first few issues and this one is working as intended.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: