You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
It seems like a flavor of Textile instead of the more popular markdown.
*bold* renders as bold text
_italic_ renders as italic text
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.
The text was updated successfully, but these errors were encountered:
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!
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
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 textfor 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 ofplaydate.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.
The text was updated successfully, but these errors were encountered: