question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multi font support

See original GitHub issue

A new pair of behaviors (FontOverrideSupport and FontOverride) will be introduced.

FontOverrideSupport will be implemented in Layerable, Terminal and Screen while FontOverriede will be implemented in Component, Layer and Terminal.

FontOverrideSupport is an internal interface which is responsible for knowing what Font Size can be used in them (this comes from the TerminalBuilder which a Terminal is built from and can’t be changed later).

FontOverride holds a reference to a Font object which will be used when drawing. If you try to add / draw / etc an object which implements FontOverride to an object which implements FontOverrideSupport, the Font’s size will be checked against the information in the object implementing FontOverrideSupport. If the Size does not fit the object will throw an exception.

The current rule is that there can be one font Size for each Terminal object and every other object must use Fonts with that size.

As a later feature half-width fonts will be also supported (eg. 16x16 + 8x16).

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
coldwarrlcommented, Oct 8, 2017

as a reminder: Multi-Size will be not supported, yet but later the ‘cogmind’ approach (use of fonts with half-width) shall be supported later so that for instance a smaller font for log-views etc. can be realized

0reactions
adam-aroldcommented, Oct 10, 2017

You can check SNAPSHOT releases using Jitpack It is pretty easy to set up. I’ve just created a test SNAPSHOT release (2017.3.2-SNAPSHOT) which has the current version of Zircon with the partially implemented multi-font support

Read more comments on GitHub >

github_iconTop Results From Across the Web

Multi Text | Adobe Fonts
Fonts in the Adobe Fonts library include support for many different languages, OpenType features, and typographic styles. Learn more about language support.
Read more >
The 11 best multilingual fonts in 2022 - Creative Bloq
The core Noto Sans font supports up to 582 languages across 237 regions, and even comes in 72 styles. What's more you can...
Read more >
Variable fonts | Can I use... Support tables for HTML5, CSS3, etc
OpenType font settings that allows a single font file to behave like multiple fonts: it can contain all the allowed variations in width,...
Read more >
How to Support Multiple Fonts in an Android App
Start using Fontize ... Once you add fontize to your project, you need to follow certain steps mentioned in the repositorie's README and...
Read more >
Language support in fonts – Fonts Knowledge - Google Fonts
Choosing reliable typefaces. Each written language uses its own set of characters. And if our UI uses multiple languages, then our typography should...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found