adapt-it / adaptit

Related language translation editor
Other
10 stars 5 forks source link

macOS: unable to set font in newer Mac OS versions. #62

Closed eb1 closed 3 years ago

eb1 commented 3 years ago

Describe the bug This issue came from the field:

"Adapt-it is an excellent software. Thank you for providing it for free. I would like to report a problem. I was using Adapt-it 6.10.0 and I am now upgrading to 6.10.5. I noticed that my font has changed. But when I open the preferences and try to change the font, I get a "debugging check" error when I click on the "ok" button."

To Reproduce Steps to reproduce the behavior:

  1. Launch Adapt It on a Macintosh with a more recent release (10.15 / Catalina or newer)
  2. Select the Adapt It > Preferences menu item, and click on the Fonts tab if it isn't selected.
  3. Click on the Change Font... button for the Source Font, and select a different font than what is currently selected (the current selection will be "Times").
  4. Click OK to close the Font dialog, then OK on the preference page to accept the new font.
  5. Go back to the preference page (Adapt It > Preferences). --> Note that the Times font is selected again.

Expected behavior Adapt It should accept the font change and allow the user to use a font other than "Times".

Note that we have been able to identify the source of this issue in-house; the wxWidgets toolkit v.3.1.4 uses a Font API that is no longer supported in newer versions of the Mac OS.

Desktop (please complete the following information):

eb1 commented 3 years ago

This issue is resolved by compiling Adapt It / Mac against the newer wxWidgets 3.1.5 toolkit. This does require a project file tweak to incorporate the QuartzCore framework; see https://github.com/adapt-it/adaptit/commit/fa58f588efe49d418b4cfbc32b32eb2571058bf9.