Skip to content

Instantly share code, notes, and snippets.

@mcxiaoke
Last active March 24, 2024 14:21
Show Gist options
  • Star 28 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcxiaoke/bd0c779a01f21baad787f49e7b330faa to your computer and use it in GitHub Desktop.
Save mcxiaoke/bd0c779a01f21baad787f49e7b330faa to your computer and use it in GitHub Desktop.
Wine and CrossOver Retine Support on macOS. from http://ielk.blogspot.com/2017/02/wine-20-on-macos-10122.html

Blurry font issue with Wine 2.0 on macOS 10.12.2

After installing the latest Wine release, which currently is 2.0 (I chose the development branch) on XQuartz 2.7.11, I was having problems with blurry text in both winecfg, regedit and other programs launched through Wine. After trying to enable font smoothing and font replacements (source) with only slight changes I found someone trying to solve the same issues (source), albeit compiling everything from scratch which I don't want to do. It turns out that the Retina display on my MacBook Pro was causing the issues with blurry fonts because Wine was not using the "real" resolution, only the reported "lower resolution".

To enable Retina support in Wine open the registry editor via a terminal, preferably through Wine Devel.app installed with Wine:
$ wine regedit

Then find the folder/key:
HKEY_CURRENT_USER\Software\

I then had to create the folder/key called "Mac Driver" and inside the new folder/key create a new string value called RetinaMode. Now edit the value of the RetinaMode to be "y".

Picture showing the location of the new value to enable Retina support for Wine on macOS. Path is:
HKEY_CURRENT_USER\Software\Wine\Mac Driver\

Close the registry editor and restart wine:
$ wineboot

Then open Wine configuration dialog:
$ winecfg

The window will now be very small due to Retina support being enabled. Navigate to Graphics and select a screen resolution scaling of 220 dpi.

Close the Wine configuration dialog and restart wine again:
$ wineboot

That's it, next time you open a program (e.g. Wine configuration dialog) it will be the correct size and with smooth fonts. The windows terminal that is launched by:
$ wineconsole

Uses other font/scaling settings so it is necessary to choose another font size by right clicking the program and navigating to properties. Then select Font and choose a font size larger than 28, remember to select "retain the for later sessions" to save the settings for new windows.

@staghouse
Copy link

staghouse commented May 28, 2018

Fantastic. Thanks!

It is worth noting that on my Retina Macbook I had to set the Wine DPI to 192 to get the perfect scaling and smooth fonts.

@vkokarev
Copy link

You the best!

@4193883-eng
Copy link

Thank you!

@thienlhh
Copy link

Thank you!

@yuygfgg
Copy link

yuygfgg commented Dec 6, 2023

You saved my day!

@spilth
Copy link

spilth commented Mar 22, 2024

Thanks for this! These steps helped me figure out how to make Wwise not look terrible on macOS: https://polymonic.com/blog/2024/03/22/smooth-fonts-in-wwise-on-macos/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment