snowie2000 / mactype

Better font rendering for Windows.
https://mactype.net
GNU General Public License v3.0
10.2k stars 444 forks source link

Still Doesn't Work with Electron Apps? #614

Open mfreeman-xtivia opened 5 years ago

mfreeman-xtivia commented 5 years ago

So is still true that there is no way to get MacType to work with Electron apps on Windows 10?

I am using one of the selections that has DirectWrite support turned on (Clean Sharp) but my Electron-based apps still look terrible on Windows 10

snowie2000 commented 5 years ago

We still haven't figured out a way to replace DirectWrite with FreeType. So, no, there is no known way to "support" electron apps so far.

snowie2000 commented 4 years ago

DirectWrite is more advanced than GDI in many areas including performance, versatility and even concept. Even the ClearType in DirectWrite is slightly better than GDI.

The problem is that, first, it's really hard to replace something advanced with another thing that's inferior. Second, as Microsoft does all the time, they didn't provide enough information and APIs to do it. Plus, the internal of DirectWrite is also absurd and hard to fully simulate. There are a ton of ways to create different kinds of DirectWrite objects and it keeps growing as Windows 10 update rolls.

mufunyo commented 4 years ago

Ultimately, implementing full Freetype support for DirectWrite will be similar in difficulty to wrappers like DXGL/dgVoodo2/DXVK. That is, it can be done, but it needs one or more hardcore developers that really know the relevant graphics APIs inside out and can reverse engineer undocumented code.

I don't think the project has access to such developers right now, but hopefully someone passionate and knowledgeable will appear soon.

mufunyo commented 4 years ago

That's probably a bit out of the scope of the project, as it's more or less the opposite of what MacType does.