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

Use Local Font Access API on Browser #14941

Open
maxkatz6 opened this issue Mar 12, 2024 · 1 comment
Open

Use Local Font Access API on Browser #14941

maxkatz6 opened this issue Mar 12, 2024 · 1 comment

Comments

@maxkatz6
Copy link
Member

Is your feature request related to a problem? Please describe.

Currently browser backend can't reference system installed fonts, as browser doesn't allow such access.
Apparently, new web standard of Local Font Access API attempts to bring this access, but as per usual with all new standards - it's only supported by chromium.

Still it's worth to investigate and try using with Avalonia.

Describe the solution you'd like

See https://developer.mozilla.org/en-US/docs/Web/API/Local_Font_Access_API

Describe alternatives you've considered

No response

Additional context

No response

@thevortexcloud
Copy link
Contributor

thevortexcloud commented Mar 13, 2024

On a related note: Here is a discussion about the theoretical implementation in Firefox (the actual standard is written by Google), which should give at least a vague indication about if this will be ratified into a proper web standard supported by non Chromium browsers.

mozilla/standards-positions#401

In any case, I am not sure it's a good idea to implement this yet. While Chromium is very popular it has a lot of competition, especially on mobile from web kit (although that may change soon thanks to Europe). I suspect the number of issues people will raise about fonts not working properly on all devices/browsers will be higher than the ones this would solve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants