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 support for custom fonts on remaining platforms #1837

Closed
freakboy3742 opened this issue Apr 1, 2023 · 2 comments · Fixed by #1399
Closed

Add support for custom fonts on remaining platforms #1837

freakboy3742 opened this issue Apr 1, 2023 · 2 comments · Fixed by #1399
Labels
enhancement New features, or improvements to existing features. iOS The issue relates to Apple iOS mobile support. linux The issue relates Linux support. macOS The issue relates to Apple macOS support. web The issue relates to supporting the web as a platform.

Comments

@freakboy3742
Copy link
Member

What is the problem or limitation you are having?

The Toga interface allows for the addition of user-provided TTF files as a font declaration. However, this interface is currently only implemented on Windows and Android.

Describe the solution you'd like

An implementation of custom font handling on GTK, Cocoa, iOS and Web.

Describe alternatives you've considered

The status quo doesn't break anything, but it also doesn't give full flexibility to the user.

Additional context

No response

@freakboy3742 freakboy3742 added enhancement New features, or improvements to existing features. iOS The issue relates to Apple iOS mobile support. linux The issue relates Linux support. macOS The issue relates to Apple macOS support. web The issue relates to supporting the web as a platform. labels Apr 1, 2023
@freakboy3742
Copy link
Member Author

@LunaMeadows has been investigating what is needed on Linux/GTK, and has found that the fontconfig library is likely a key part of the puzzle. fontconfig exposes gobject bindings... but they are woefully incomplete. Barely exposing the configuration interface, and not exposing the APIs needed to load/register fonts. This is how far they've gotten in building and updated set of GI bindings for FontConfig.

https://gist.github.com/LunaMeadows/eb7cea8d4797eabd5fd5171dc182df81

@mhsmith
Copy link
Member

mhsmith commented Sep 12, 2023

This was previously implemented for Android and WinForms in #1363. We're currently working on GTK in #1903, and Cocoa and iOS in #1399.

@mhsmith mhsmith changed the title Add support for custom fonts Add support for custom fonts on remaining platforms Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features, or improvements to existing features. iOS The issue relates to Apple iOS mobile support. linux The issue relates Linux support. macOS The issue relates to Apple macOS support. web The issue relates to supporting the web as a platform.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants