I’ve set font and background color preferences in the Editor. These hold if I go into full screen. But if I enter composition mode, the background color changes though the font preference persists. Unfortunately, uncommanded font changes will occur while typing.
–how do I prevent this?
–how do I set the background color in composition mode?
The back ground colour in Composition Mode is independent of the main editor.
Go to Settings > Appearance > Composition Mode and click on the Colours tab. You’ll want to play with the Editor and Screen background settings, but try the Use default colour button first to see if that does what you want…
Also, have a look at the Text line, where there’s a setting to override the editor text colour, which is helpful if you like, say, light mode in the editor and a dark theme in composition mode.
It looks like the font changes at the apostrophe, which suggests that the font you’re using doesn’t have the smart apostrophe character and macOS is falling back on a basic font. But are you saying this only happens in composition mode?
I’d check your font to determine what characters it contains and also whether the project is set to use smart or straight quotes (under Edit ▸ Substitutions) ; you might avoid the problem by leaving them straight, if that doesn’t bother you. (Depending on your output format, you would have to do a bit of extra work with regex replacements to make them smart on compile, if that’s needed.)