alexseanchai: Katsuki Yuuri wearing a blue jacket and his glasses and holding a poodle, in front of the asexual pride flag with a rainbow heart inset. (Default)
let me hear your voice tonight ([personal profile] alexseanchai) wrote2018-03-25 04:46 pm

ETA: never mind this, it's less hassle just to do the bits in italics

Okay. I'm working through Guido Henkel's ebook formatting series and there's bits in this short story where, if the ereader default font is serif, I want these to display in Verdana or other sans-serif, and if the ereader default font is sans-serif, I want these to display in Garamond or other serif. Think I can do that? How would I do that?
kaberett: Trans symbol with Swiss Army knife tools at other positions around the central circle. (Default)

[personal profile] kaberett 2018-03-26 12:58 pm (UTC)(link)
this is doable, badger me if you're still interested in it
kaberett: Trans symbol with Swiss Army knife tools at other positions around the central circle. (Default)

[personal profile] kaberett 2018-04-11 03:00 pm (UTC)(link)

I mean, fair enough, but there's a fine literary tradition of e.g. Terry Pratchett using different fonts for different storylines! Reaper Man, I think.

kaberett: Trans symbol with Swiss Army knife tools at other positions around the central circle. (Default)

[personal profile] kaberett 2018-05-02 05:46 pm (UTC)(link)
so one option is that epubs let you specify font, and later-generation Kindle devices will also display embedded fonts (provided "publisher fonts" isn't disabled). ebooks are fundamentally jazzed-up HTML. I would expect the way you do this is to define emphasised text as occurring in one font, and normal face in a different, with some conditionals based on reader settings. Given a raw file I expect I'd be able to dig at it and work the code out but I am cleaaaaaaaaaarly not scraping together the executive function to manage that without an actual file to play with, alas, but there's where I'd be looking.