I’m working on a Programming book, and there is a convention in Programming where code is presented as a different font than the rest of the book.
The faculty member wants code in Courier New.
I tried to format the HTML like this:
span style=“font-family: courier new;”
That worked in the webbook view, but not across export types. What would be a way to do what this faculty member wants and change fonts within a chapter. Anyone have any ideas?
I didn’t realize that there were such a thing as code tags. That will make this a lot easier to manage. There’s even a keyboard shortcode to go through rapidly.
I don’t have strong preferences about Open Source Fonts or Monospace fonts, but I found this article that highlights 5 open source monospace fonts.
The one supported by Google seems to have a lot of languages, Fira Code was commissioned by Mozilla, Deja Vu Sans is meant to look like the font used in GNOME…