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

Add Font Features, Languages, and Name IDs on GlyphTypeface #15597

Open
stevemonaco opened this issue May 3, 2024 · 1 comment · May be fixed by #15837
Open

Add Font Features, Languages, and Name IDs on GlyphTypeface #15597

stevemonaco opened this issue May 3, 2024 · 1 comment · May be fixed by #15837

Comments

@stevemonaco
Copy link
Contributor

stevemonaco commented May 3, 2024

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

Querying the capabilities and informational data of a font is not directly supported by Avalonia. Besides apps that load fonts at runtime, such support could also open up new avenues for DevTools improvements.

Describe the solution you'd like

These should be added to GlyphTypeface:

  • Feature is exposed by HarfBuzzSharp and exists as FontFeature(Collection) in Avalonia.
  • Language is exposed by HarfBuzzSharp.
  • Name IDs (OpenTypeNameId) are not exposed and need to be added to HarfBuzzSharp's Face via hb_ot_name_get_utf8.

Describe alternatives you've considered

No response

Additional context

Online tools such as https://fontdrop.info/#/?darkmode=true exposes this information in a usable way. This is sufficient for working with fonts with characteristics known at compile-time and may help others until Avalonia provides better information.

@Gillibald
Copy link
Contributor

#15837

@Gillibald Gillibald linked a pull request May 29, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants