Skip to content

Instantly share code, notes, and snippets.

Last active June 8, 2024 06:07
Show Gist options
  • 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

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 installed with Wine:
$ wine regedit

Then find the folder/key:

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.

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.

Copy link

You the best!

Copy link

Thank you!

Copy link

Thank you!

Copy link

yuygfgg commented Dec 6, 2023

You saved my day!

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:

Copy link

wow great thanks for your posting

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