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 format supports variants, but render only kinda does #8

Open
Yamavu opened this issue Mar 20, 2024 · 2 comments
Open

text format supports variants, but render only kinda does #8

Yamavu opened this issue Mar 20, 2024 · 2 comments

Comments

@Yamavu
Copy link

Yamavu commented Mar 20, 2024

I was wondering why weird font changes were happening, didn't find anything in code and researched a bit.
turns out Playbook supports bold and italic via the standard library

playdate.graphics.drawText("normal *bold* _italic_", x, y)

It seems like a flavor of Textile instead of the more popular markdown.

  • *bold* renders as bold text
  • _italic_ renders as italic text

PlayBook 2024-03-20 08 17 39

for that to work, the bold and italic variants have to be set alongside the regular font. (see Inside Playdate)

(On the other hand if this behavior is unwanted, playdate.graphics.font:drawText() instead of playdate.graphics.drawText(). I think it makes this app more usable and loosens up the text.)

BTW: above markup information should be handy for creating a guide for formatting books.

@IdreesInc
Copy link
Owner

Oh, that's unexpected! Didn't expect that, maybe text formatting is more possible than I thought, will have to keep this in mind if I add the epub to txt converter in the future. Also I see that you are using possibly the very first version of PlayBook, heads up that the updated versions are available on itch.io (if you downloaded it there previously) or on the catalog!

@Yamavu
Copy link
Author

Yamavu commented Apr 16, 2024

yeah I'll have to wrap my head around the way Playdata does fonts and actually make em, I'd have a Pull Request ready pretty soon.
The silly idea that started this was to get a flavor of OpenDyslexic to work on that little screen.
Thanks for the headsup. I didn't find the itchio page yet

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

No branches or pull requests

2 participants