Author Topic: Replicate MACOS Catalina tiny font problem  (Read 4084 times)

0 Members and 1 Guest are viewing this topic.

Offline nowhereman999

  • Newbie
  • Posts: 1
    • View Profile
Replicate MACOS Catalina tiny font problem
« on: December 23, 2019, 05:15:04 pm »
Hello All,

I've been using QB64 for a few years and have been enjoying it, thanks to all those involved in its development.  I see there is a topic about some people having the tiny/small font using QB64 with MACOS Catalina and I think I've figure out how to replicate the problem.  This is a link to a small discussion about it: https://www.qb64.org/forum/index.php?topic=1752.msg110346#msg110346

I found that if you go to System Preferences on the MAC and select Displays and for your Resolution you select "Default for display" QB64 works properly.  But if you select Scaled and then select any of the scaled sizes other then the right most (More Space) option the problem with the small font on the QB64 window is shown.

I would have posted this on the above thread but it looks like it is closed.  I hope with this information this bug can be fixed.

Happy Holidays & New Year!
Nowhereman


FellippeHeitor

  • Guest
Re: Replicate MACOS Catalina tiny font problem
« Reply #1 on: December 23, 2019, 05:30:43 pm »
It’s indeed happening for people with Retina displays, so it totally makes sense.

Thank you so much for sharing, hope it helps people with the issue.

Offline BobsTheDude

  • Newbie
  • Posts: 2
    • View Profile
Re: Replicate MACOS Catalina tiny font problem
« Reply #2 on: December 29, 2019, 01:06:06 pm »
After searching a bit I found qb64, which seems exactly what I need for a project I'm working on. I did run into the small qb64 screen inside a large black window as many others have on macOS Catalina 10.15.2. I have tried every solution presented on the forums with no luck but I did want to mention that not only does this issue exist but the menu is non-responsive(qb64 File Edit Windows) as well, need to force quit on qb64 to exit the program. Really did not want to use gwbasic 3.23 in DOSBox, but will for time being. I look forward to fully using qb64.

FellippeHeitor

  • Guest
Re: Replicate MACOS Catalina tiny font problem
« Reply #3 on: December 29, 2019, 04:56:06 pm »
Here's a temporary fix for you guys with Retina-display macOS machines:

  • Edit file internal/c/libqb/gui.cpp
  • On line 541, which currently reads glViewport(0,0,dst_w,dst_h);, change it to glViewport(0,0,dst_w * 2,dst_h * 2);
  • Now, in your QB64 folder, from terminal, run again setup_osx.command.

That should give you a normal looking IDE after compilation does its job, and any program compiled with QB64 from then on should be fixed for you machine too.

It should get you guys going until a formal fix comes up.
« Last Edit: December 29, 2019, 04:58:42 pm by FellippeHeitor »

Offline BobsTheDude

  • Newbie
  • Posts: 2
    • View Profile
Re: Replicate MACOS Catalina tiny font problem
« Reply #4 on: December 30, 2019, 01:32:03 am »
Worked like a charm, thank you.

FellippeHeitor

  • Guest
Re: Replicate MACOS Catalina tiny font problem
« Reply #5 on: December 30, 2019, 02:26:50 am »
Great to hear! ❤️

Offline pforpond

  • Newbie
  • Posts: 76
  • I am me
    • View Profile
Re: Replicate MACOS Catalina tiny font problem
« Reply #6 on: December 30, 2019, 04:36:01 am »
Awesome! Your fix works like a charm! Thank you for your work, it is much appreciated! :D
Loading Signature...

FellippeHeitor

  • Guest
Re: Replicate MACOS Catalina tiny font problem
« Reply #7 on: December 30, 2019, 07:43:20 am »
Awesome!

I need one more favor from both of you. Could you please let me know what you get from running the line below on terminal?

Code: [Select]
system_profiler SPDisplaysDataType | grep Resolution

Offline pforpond

  • Newbie
  • Posts: 76
  • I am me
    • View Profile
Re: Replicate MACOS Catalina tiny font problem
« Reply #8 on: December 30, 2019, 08:15:04 am »
Awesome!

I need one more favor from both of you. Could you please let me know what you get from running the line below on terminal?

Code: [Select]
system_profiler SPDisplaysDataType | grep Resolution

Resolution: 2560 x 1600 Retina
Loading Signature...

FellippeHeitor

  • Guest
Re: Replicate MACOS Catalina tiny font problem
« Reply #9 on: December 30, 2019, 08:16:20 am »
Thanks!