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

"Draw Text" Function Implementation #9

Open
Tracked by #54
RobDavenport opened this issue Aug 2, 2022 · 0 comments
Open
Tracked by #54

"Draw Text" Function Implementation #9

RobDavenport opened this issue Aug 2, 2022 · 0 comments
Labels
Console Related to the Console crate Discussion Discussions and non-concrete issues. enhancement New feature or request help wanted Extra attention is needed

Comments

@RobDavenport
Copy link
Member

RobDavenport commented Aug 2, 2022

We currently have a console_log function, we also have the beginnings of a draw_text implementation.

This function would draw text on the screen at the specificed location, similar to drawing a sprite.

How should we represent fonts?

  • They could be built-in to the engine. We could support multiple font heights, since the console also has multiple potential resolutions.
  • They could be similar to sprites, where we add an additional layer on the ROM and Editor to support the drawing of fonts. The drawing code could just "stamp" fonts in place similar to drawing of a sprite.
  • Are we limiting it to 1-bit fonts? 2-bit? Or something else?
  • What character set are we supporting? ASCII? How about foreign-language characters?
  • Is there a default font we can include (and distribute) ?

I think it would be good to keep it simple and restrict it to monospace fonts - however, I'm not picky on this. But I think anything more than this is out of the scope of the feature. For example, we shouldn't need to pass in things like wrapping settings, justification, etc.

It could also potentially open up some nice hacks/tricks where developers use drawing of fonts as an alternative for sprite drawing.

What do users/developers want out of a "Draw Text" function?

  • Please post your ideas as replies to this :D
@RobDavenport RobDavenport added enhancement New feature or request help wanted Extra attention is needed labels Aug 2, 2022
@RobDavenport RobDavenport added Console Related to the Console crate Discussion Discussions and non-concrete issues. labels Aug 22, 2022
@RobDavenport RobDavenport pinned this issue Aug 24, 2022
@RobDavenport RobDavenport added this to the 0.2.0 milestone Sep 21, 2022
@RobDavenport RobDavenport removed this from the 0.2.0 milestone Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Console Related to the Console crate Discussion Discussions and non-concrete issues. enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant