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

text/v2: use embedded bitmap data when possible #2956

Open
11 tasks
hajimehoshi opened this issue Apr 8, 2024 · 2 comments
Open
11 tasks

text/v2: use embedded bitmap data when possible #2956

hajimehoshi opened this issue Apr 8, 2024 · 2 comments

Comments

@hajimehoshi
Copy link
Owner

Operating System

  • Windows
  • macOS
  • Linux
  • FreeBSD
  • OpenBSD
  • Android
  • iOS
  • Nintendo Switch
  • PlayStation 5
  • Xbox
  • Web Browsers

What feature would you like to be added?

Some TrueType/OpenType fonts include bitmap data for small glyphs. These provide better user experience for low-resolution environment.

This feature is requested by @kettek .

Why is this needed?

Better UX

@hajimehoshi
Copy link
Owner Author

We just have to treat bitmap data at

case api.GlyphBitmap:
if data.Outline != nil {
segs = data.Outline.Segments
}

See also https://pkg.go.dev/github.com/go-text/typesetting/opentype/api#GlyphBitmap

@hajimehoshi
Copy link
Owner Author

go-text/typesetting#160

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