Page MenuHomePhabricator

SPIKE: investigate the default font-family in WebView and a proper way of setting it
Open, MediumPublicSpike

Description

Related to the tickets:
T264445: Introduce a serif font theme option
T263259: Animate transition from Explore feed to articles

In the feed card redesign ticket, we set the article title font-family to serif, which works for every language.

Screenshot_20201022-143448_Wikipedia Dev.jpg (2×1 px, 393 KB)

But in WebView, we can notice that the article title is still set to a default font-family in Chinese, Japanese, or other non-Latin characters.

Screenshot_20201022-143453_Wikipedia Dev.jpg (2×1 px, 448 KB)
Screenshot_20201022-143502_Wikipedia Dev.jpg (2×1 px, 472 KB)

In English or other Latin characters, the title shows in the correct font-family, e.g. (serif or sans-serif).

Screenshot_20201022-143510_Wikipedia Dev.jpg (2×1 px, 553 KB)

It would be great to find out the default font-family for non-Latin characters and also find out a proper way of setting the font-family in Webview.

Event Timeline

Restricted Application changed the subtype of this task from "Task" to "Spike". · View Herald TranscriptOct 26 2020, 4:08 PM
LGoto triaged this task as Medium priority.Oct 26 2020, 4:11 PM
LGoto moved this task from Needs Triage to UX Debt Backlog on the Wikipedia-Android-App-Backlog board.