Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text: Allow specifying multiple device fonts for text fields #19274

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

kjarosh
Copy link
Member

@kjarosh kjarosh commented Jan 18, 2025

When device fonts are used, you can specify a list of font names for a text field, in which case the first one available will be used. No glyph fallback mechanism between fonts on the list is applied.

This is true for both CSS and pure TextFormats.

Additionally some refactors are included.

@kjarosh kjarosh added text Issues relating to text rendering/input A-core Area: Core player, where no other category fits T-compat Type: Compatibility with Flash Player waiting-on-review Waiting on review from a Ruffle team member labels Jan 18, 2025
That matches the behavior of Flash Player and Ruffle Desktop.
When device fonts are used, you can specify a list of font names for
a text field, in which case the first one available will be used.
No glyph fallback mechanism between fonts on the list is applied.

This is true for both CSS and pure TextFormats.
This test verifies the behavior of styling with a list of fonts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-core Area: Core player, where no other category fits T-compat Type: Compatibility with Flash Player text Issues relating to text rendering/input waiting-on-review Waiting on review from a Ruffle team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant