Monospaced fonts not used in pop-up editor
- Sequel Pro Version: Nightly 5446
- macOS Version: Mojave 10.14.5
- MySQL Version: 8.0.16
Description I've checked the "Use monospaced fonts" box, but the pop-up editor for fields is not using a monospaced font. I've also set the "MySQL content font" to a monospaced font, but it is also not being used.
Steps To Reproduce
- Switch Content view to use the popup editor
- Double click a field to edit it
- Note that it's using a non-monospaced font.
Expected Behaviour The pop-up editor should display content using a monospaced font when the "Use monospaced fonts" box is checked.
The problematic code looks to be here:
https://github.com/sequelpro/sequelpro/blob/97c1b857832ce3478c6742839116d4b286c9474e/Source/SPFieldEditorController.m#L310-L324
What seems to be happening is the pref [prefs objectForKey:SPFieldEditorSheetFont] (at least for me and I suspect you as well) is equal to the value: AppleSystemUIFont, even if you select 'use monospaced fonts' in preferences. Because [prefs objectForKey:SPFieldEditorSheetFont] evaluates to true, SPDefaultMonospacedFontName is never used as the font.
I'm not really sure what [prefs objectForKey:SPFieldEditorSheetFont] is used for. Maybe a fallback font? I'm thinking this may be a semantic error but would need to investigate some more.
This issue has been marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This issue has been auto-closed because there hasn't been any activity for at least 21 days. However, we really appreciate your contribution, so thank you for that! 🙏 Also, feel free to open a new issue if you still experience this problem 👍.