sequelpro icon indicating copy to clipboard operation
sequelpro copied to clipboard

Monospaced fonts not used in pop-up editor

Open gms8994 opened this issue 7 years ago • 3 comments

  • 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

  1. Switch Content view to use the popup editor
  2. Double click a field to edit it
  3. 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.

image

gms8994 avatar Jul 01 '19 13:07 gms8994

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.

italktocomputers avatar Jul 10 '19 00:07 italktocomputers

This issue has been marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Jun 22 '20 08:06 stale[bot]

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 👍.

stale[bot] avatar Jun 29 '20 08:06 stale[bot]