Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Support multiple fonts #73

Open
fenhl opened this issue Mar 21, 2019 · 2 comments
Open

Support multiple fonts #73

fenhl opened this issue Mar 21, 2019 · 2 comments

Comments

@fenhl
Copy link

fenhl commented Mar 21, 2019

I would like to request a feature where multiple fonts can be combined, with one acting as the main font and the others as fallbacks, similar to CSS.

The reason I'm requesting this is that a project I'm working on has a goal of displaying any text that can appear in a chat message, i.e. arbitrary Unicode. As a step in that direction, I want to switch to the Noto typeface, where each font is split into multiple TTF files since there is a hard limit of how many glyphs can be in a single TTF file.

Alternatively, a lower-level feature, such as a method on the font type to check whether it contains a glyph for a given character, could allow me to implement this myself.

Any solution would ideally be available on both the Raspberry Pi version and the open-source version, since most of my info-beamer projects target both platforms.

@dividuum
Copy link
Owner

How do multiple font files and switching between them work for other systems? Multiple files are open and if one doesn't provide a glyph it falls back to the next one?

@fenhl
Copy link
Author

fenhl commented Mar 21, 2019

That's how it works in CSS as far as I can tell.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants