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

enable to use pre-installed fonts in each system #788

Open
hajimehoshi opened this issue Jan 18, 2019 · 2 comments
Open

enable to use pre-installed fonts in each system #788

hajimehoshi opened this issue Jan 18, 2019 · 2 comments

Comments

@hajimehoshi
Copy link
Owner

hajimehoshi commented Jan 18, 2019

The problem is that Go doesn't have an OpenType font parser yet. OpenType fonts are available now!

@hajimehoshi hajimehoshi changed the title Getting pre-installed fonts in each system enable to use pre-installed fonts in each system Oct 10, 2023
@hajimehoshi hajimehoshi added this to the v2.7.0 milestone Oct 10, 2023
@hajimehoshi hajimehoshi modified the milestones: v2.7.0, v2.8.0 Nov 11, 2023
@hajimehoshi
Copy link
Owner Author

go-text/typesetting#111 (comment)

Perhaps you will be interested by the fontscan (and its FontMap type) that you could use to access system fonts.

https://pkg.go.dev/github.com/go-text/typesetting/fontscan

This seems nice!

@hajimehoshi hajimehoshi modified the milestones: v2.8.0, v2.7.0 Nov 24, 2023
@hajimehoshi hajimehoshi modified the milestones: v2.7.0, v2.8.0 Mar 9, 2024
@hajimehoshi hajimehoshi modified the milestones: v2.8.0, v2.9.0 Sep 1, 2024
@hajimehoshi
Copy link
Owner Author

hajimehoshi commented Sep 21, 2024

How should this work on mobiles and browsers...? 🤔

EDIT: NVM, fontscan works on mobiles. https://github.com/go-text/typesetting/blob/v0.1.1/fontscan/scan.go#L69-L79

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

1 participant