Page MenuHomePhabricator

Font for the page contents gets changed if display setting fonts are changed for English
Closed, ResolvedPublic


When fonts for English are changed from the ULS display settings, the font used on the page content gets changed along with the MediaWiki interface messages.

Steps to Reproduce:

  1. Go to ULS -> Language Settings -> Display Settings as a logged-in user
  2. Ensure that English is the selected language for the interface
  3. Go to the 'Font' tab and select 'OpenDyslexic' from the dropdown menu

Actual Results:

  1. The interface messages and the page contents are displayed using the OpenDyslexic font. This happens in the preview mode as well as after applying the settings

Expected Results:

  1. Only the interface messages are displayed using the OpenDyslexic font.

Version: unspecified
Severity: major



Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:49 AM
bzimport set Reference to bz49151.

Allegedly only happens when using OpenDylexic according to Santhosh. Lowering priority.

Riasing priority. Was also observed when:

  • UI language is English
  • English uses system font
  • Content language is Tamil
  • A paragraph is tagged with div lang="en"

Observed was that the tagged paragraph still had the Tamil default font applied

Expected was that the system font is applied.

lang="en" has no effect since en has no default font in our repository. So webfonts ignore that element and it inherits font style from body. So Tamil font get applied. If Tamil font has no glyphs defined for en, then it fallbacks to generic font family, ie sans-serif(system font). inherits from any parent element style. May not be body tag. Can be the div from content starts.

Probably linked to this issue.

After selecting OpenDyslexic the interface+contents displays in this font (without clicking apply settings). Selecting the system font now only returns the interface to the normal font whilst the contents go on being displayed in the OpenDyslexic font. The page must then be reloaded in order to display the article in a normal font.

To reproduce follow Runa's instructions above then:

  1. Select System font from the drop-down menu
  2. Click Cancel

Happens in either or and using either latest Chrome or Firefox.

Change 80554 had a related patch set uploaded by Santhosh:
Update jquery.ime from upstream

Change 80554 merged by jenkins-bot:
Update jquery.webfonts from upstream