New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 642340 link

Starred by 2 users

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Feature

Blocked on:
issue 640077



Sign in to add a comment

Needs a Skia API to find generic font families with prioritized locales

Project Member Reported by kojii@chromium.org, Aug 30 2016

Issue description

We use Skia matchFamilyStyleCharacter() API to find the default font with a list of locales. This works good for the system font fallback.

Generic font families requires specified characteristics, such as serif or monospace. Currently on Android:
* We give the generic font families as is to Skia, but it doesn't contain locale.
* CJK will then be system fallback for all characters. To avoid system fallback performance hit, we ignore generic font families and use matchFamilyStyleCharacter() for CJK.

We need an API that returns the best font for the specified generic font family name and locale. Without this, we're likely to end up a hard coded list of font names, the same way we do for Windows.

Originally from  issue 640077 .
 

Sign in to add a comment