Skip to content

Instantly share code, notes, and snippets.

@x7dl8p
Created August 13, 2025 13:01
Show Gist options
  • Select an option

  • Save x7dl8p/5e5cd0742de41c3ef082c2045e84b0f3 to your computer and use it in GitHub Desktop.

Select an option

Save x7dl8p/5e5cd0742de41c3ef082c2045e84b0f3 to your computer and use it in GitHub Desktop.
how to get mac text rendering in linux
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit name="antialias"><bool>true</bool></edit>
<edit name="hinting"><bool>false</bool></edit>
<edit name="rgba"><const>rgb</const></edit>
<edit name="lcdfilter"><const>lcddefault</const></edit>
</match>
</fontconfig>
@x7dl8p
Copy link
Author

x7dl8p commented Aug 13, 2025

If you drop this file in ~/.config/fontconfig/fonts.conf and run:

fc-cache -fv

it’ll apply system-wide for your user. (in Linux)

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