Page MenuHomePhabricator

Allow use of system fonts for languages with wildcards in font.ini language lists
Open, Needs TriagePublic

Description

It appears that whenever a language in a font.ini language list, such as this one, within a webfont folder contains a wildcard—presumably to subsume any specifying country codes such as -IN or -BD—that language lacks an entry for the use of system fonts in ext.uls.webfonts.repository.js (see any of the languages which use the Jomolhari font). I suspect that this is preventing use of system fonts for displaying Bengali text for non-logged-in users on bnwikisource since only Siyam Rupali is available for Bengali text in the aforementioned JavaScript file and after T193367 some users have been complaining about it. I also suspect that the FontRepoCompiler may need to be modified to prevent this exclusion of system fonts for those languages.

Event Timeline

Vvjjkkii renamed this task from Allow use of system fonts for languages with wildcards in font.ini language lists to hjdaaaaaaa.Jul 1 2018, 1:11 AM
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
Ankry renamed this task from hjdaaaaaaa to Allow use of system fonts for languages with wildcards in font.ini language lists.Jul 1 2018, 9:29 PM
Ankry raised the priority of this task from High to Needs Triage.
Ankry updated the task description. (Show Details)
Ankry added a subscriber: Aklapper.

I'm not sure I understand the problem. As an anonymous user, I can see Siyam Rupali and the system font in the ULS panel on Bengali Wikisource, and I can select both. Is something different supposed to happen? (My apologies if it sounds clueless. I haven't looked at ULS code for a while.)

In the lists in the linked JavaScript file for "bn" and "bpy", the entry for "system" is not present (unlike, say, in the lists for "af" and "ang"), and so by default pages are not rendered using the system font for non-logged-in users on bnwikisource, instead using the Siyam Rupali font by default since it is the first and only font in that list. This task was to rectify this situation so that system fonts would still render by default for non-logged-in users for such languages whose font.ini lists contain wildcards (the * symbol).