Skip to content

Allow separate font selections for Render and Editor panes #2534

@ag-eitilt

Description

@ag-eitilt

I do prefer using a monospace font in the editor, both since it emphasizes the manuscript status of it all, and because it's what I'm used to from looking at code/vim for the vast majority of everything else I do. However, I do also make use of en vs em dashes, and all four types of space1 (I'd be using five if you provided an entry method for either U+2002 or U+2003; as it is I just fall back on double-spacing the ends of sentences), and those distinctions aren't fully visible with the monospacing as it is, at least without a very lucky font find. Alternatively, reading back through a draft using a different font is enough to make my brain pick out a few things that it didn't previously, and being able to easily trigger that would be helpful even without spacing shenanigans.

What I'd like to be able to do is continue typing everything in monospace, hit Ctrl+R to pull up the rendered view, but then have that view use a non-monospace font:

Image

(Mockup from my notes since I've not migrated my writing over yet.)

I don't know if the way you're using the QT widgets would make doing so tricky, but barring problems at that level it seems from the outside like all that's required would be to add another font selection in the preferences, maybe another theme-color selection for completeness' sake, and hook the rendered-view pane up to pull from there rather than from the same place as the editor.

Footnotes

  1. For the curious: Normal space between words; non-breaking space after abbreviations, before em dashes, and other places where there definitely shouldn't be a line break; non-breaking thin space according to French standards2 (really happy with your solution to (for French text) non breaking thin space before some chars #703, by the way) and between multi-part abbreviations (e. g. "i. e."); and idiosyncratically thin space on the parenthetical side of em dashes. There's definitely an argument that that's overkill during the manuscript, but it does allow me to write scripts which specifically target a specific division -- for example "split the document into individual sentences" -- which I can then use to analyze the style of the piece while editing.

  2. According to my occasional historical-typography digging, English and French originally had very similar spacing patterns, and it was only after typewriters that the English shifted the punctuation the half-character left and the French a half-character right. And then English lost the double-spaced sentences anyway. I'm not entirely sold on that since typewriters as the cause of double-spacing is a bit dubious for other reasons, but it's a good story and I like how clear it makes everything look, so I'm sticking to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementEnhancement: New feature or improvementuser interfaceComponent: General user interface

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions