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

Improve default fonts and support displaying all unicode characters (using go-text) #568

Open
kkoreilly opened this issue Jul 27, 2023 · 3 comments
Assignees
Labels
enhancement A new feature request needs discussion Need to discuss what to do
Milestone

Comments

@kkoreilly
Copy link
Member

Roboto, Roboto Mono, and the Noto Sans fonts should be embedded into apps by default. Roboto and Roboto Mono look better than Go and Go Mono and are the default on Android, ChromeOS, and other Google products. Noto Sans supports many more characters than default fonts and will help resolve issues like goki/gi#484 and goki/girl#2. The one thing that needs to be figured out is a way to optimize and only embed the Noto fonts that are needed, as all of them for every script would take a lot of space.

@kkoreilly kkoreilly added the enhancement A new feature request label Jul 27, 2023
@kkoreilly kkoreilly self-assigned this Jul 27, 2023
@kkoreilly
Copy link
Member Author

Roboto and Roboto Mono are now used as the default fonts, but we still need to support Noto fonts, likely through a separate fonts repository from which people can underscore import specific fonts. For dynamic translation, we will need to figure out a better approach, but that is beyond the scope of v2 (see #9).

@kkoreilly kkoreilly added this to the v2 milestone Dec 25, 2023
@kkoreilly kkoreilly changed the title Improve default fonts Improve default fonts and support displaying all unicode characters Dec 25, 2023
@kkoreilly
Copy link
Member Author

We also need to implement support for RTL and vertical text.

@ddkwork
Copy link
Contributor

ddkwork commented Feb 4, 2024

Roboto and Roboto Mono are now used as the default fonts, but we still need to support Noto fonts, likely through a separate fonts repository from which people can underscore import specific fonts. For dynamic translation, we will need to figure out a better approach, but that is beyond the scope of v2 (see #9).

I think it is possible to return fonts in the font repository by setting the body language, for example, when we set language="Chinese" after body instantiation, loading Chinese fonts is the default

@kkoreilly kkoreilly added the needs discussion Need to discuss what to do label Feb 7, 2024
@kkoreilly kkoreilly modified the milestones: v0.3, v0.4 Jul 23, 2024
@kkoreilly kkoreilly changed the title Improve default fonts and support displaying all unicode characters Improve default fonts and support displaying all unicode characters (using go-text) Nov 18, 2024
@kkoreilly kkoreilly assigned rcoreilly and unassigned kkoreilly Nov 18, 2024
@kkoreilly kkoreilly moved this to Todo in Cogent Roadmap Nov 18, 2024
@kkoreilly kkoreilly self-assigned this Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A new feature request needs discussion Need to discuss what to do
Projects
Status: Todo
Development

No branches or pull requests

3 participants