LeoFCardoso / pdf2pdfocr

A free tool to OCR a PDF and add a text "layer" in the original file, making a searchable PDF. Use only open source tools. Please tip!
Apache License 2.0
266 stars 33 forks source link

Font issue on Macos Catalina Dark Appearance #17

Open ericmoret opened 4 years ago

ericmoret commented 4 years ago

When running the gui I receive an error message as seen below. Note that this does not seem to have consequences when macos is configured in light mode, however in dark mode the non selected UI controls are displaying empty, see attached screenshot.

Screen Shot 2020-04-11 at 8 18 51 AM
% pdf2pdfocr_gui.py
2020-04-11 08:16:46.702 Python[45232:697646] CoreText note: Client requested name ".SFNS-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
2020-04-11 08:16:46.702 Python[45232:697646] CoreText note: Set a breakpoint on CTFontLogSystemFontNameRequest to debug.
LeoFCardoso commented 4 years ago

Thank you. I never use dark mode on my Mac. I'll submit a issue to Gooey project and keep this open.

LeoFCardoso commented 4 years ago

Last commit fixes colors in GUI. It's not perfect, but better. Please try.