Skip to content

Font family mapping in UITextDisplayer #4749

@Robloche

Description

@Robloche

According to the specifications tts:fontFamily and <genericFamilyName>, I understand that when the font family is a generic name, a mapping should be applied.

What I saw during one of my tests is that tts:fontFamily="proportionalSansSerif" is simply converted to font-family: proportionalSansSerif;, and since this font doesn't exist (at least to my knowledge), it produces the wrong display.

Example:
image

Did I get it right?

Metadata

Metadata

Assignees

Labels

component: TTMLThe issue involves TTML subtitles specificallycomponent: UIThe issue involves the Shaka Player UIflag: good first issueThis might be a relatively easy issue; good for new contributorsflag: seeking PRWe are actively seeking PRs for this; we do not currently expect the core team will resolve thispriority: P2Smaller impact or easy workaroundstatus: archivedArchived and locked; will not be updatedtype: bugSomething isn't working correctly

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions