Skip to content

Instantly share code, notes, and snippets.

@luciascarlet
Last active June 12, 2023 11:58
Show Gist options
  • Save luciascarlet/dd8f95d77f9dc0f8dc15886b7cfd7511 to your computer and use it in GitHub Desktop.
Save luciascarlet/dd8f95d77f9dc0f8dc15886b7cfd7511 to your computer and use it in GitHub Desktop.
MacType "Balanced" profile (WinUI-like)
# update v1.1 (see revisions for older version; this has a smoother appearance for both DirectWrite and GDI)
# Use with latest testing version of MacType only.
# Recommended to disable ClearType (not AA) system-wide by setting the FontSmoothingType DWORD to 1 in HKCU/Control Panel/Desktop. Do not do this step if you use Firefox, as it'll cause it to render very crunchy non-antialiased fonts for some text, but it improves Edge/Chrome and Chromium apps.
# Microsoft Edge and Chrome require bypassing the renderer code integrity policy so that vertical AA can be enabled by this profile. More details: https://github.com/snowie2000/mactype/wiki/Google-Chrome
# Additional suggested tweak: use Winaero Tweaker (https://winaero.com/winaero-tweaker/) to change every system font to "Segoe UI Variable Small", if you are using Windows 11. This will make fonts in Win32 UI's consistent with WinUI UI's, where Segoe UI Variable is used. (Windows doesn't use Segoe UI Variable for those by default because the legacy ClearType renderer is so crap it actually mangles their own Segoe UI Variable font...)
# update: seems this can screw up things that ask for specific system fonts for some reason and make them, like, super-bold? I don't recommend doing this right now, at least not the "system font" as this seems to do font replacement...
[General]
# 0: use font's built-in hints, 1: use no hints, 2: use FreeType auto hints (sometimes better sometimes worse)
HintingMode=0
AntiAliasMode=1
NormalWeight=1
BoldWeight=1
ItalicSlant=0
EnableKerning=1
GammaMode=0
LcdFilter=1
BolderMode=0
TextTuning=0
TextTuningR=0
TextTuningG=0
TextTuningB=0
GammaValue=1.9
Contrast=1.3
RenderWeight=1.8
Fontlink=2
HookChildProcesses=1
FontLoader=0
FontSubstitutes=0
LcdFilterWeight=3,121,0,0,0
Shadow=0,0,0,0x0,0,0x0
MaxBitmap=0
DirectWrite=1
HintSmallFont=0
CacheMaxFaces=256
CacheMaxSizes=12554432
CacheMaxBytes=12108864
Name=Balanced
[UnloadDll]
# put processes that you want to exclude from MacType here, example:
# firefox.exe
[exclude]
[FontSubstitutes]
[Individual]
[ExcludeSub]
[DirectWrite]
# still subject to change, these are hard
RenderingMode=5
ClearTypeLevel=0.0
GammaValue=2.2
Contrast=1.67
[Experimental]
# injects into more apps? I guess?
ArmBreaker=2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment