snowie2000 / mactype

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

MacType not working on Firefox 72.0.2 64 bit #673

Open MasonicCGI opened 4 years ago

MasonicCGI commented 4 years ago

Hello, I just upgraded Firefox to version 72.0.2 64 bit and Mactype 1.17.628.0 is not rendering anything anymore on Win 10. Could someone tell how to get Mactype to work again on Firefox? Thank you a lot,

IgnacioMD commented 4 years ago

There's a workaround

https://github.com/snowie2000/mactype/wiki/Mozilla-Firefox

Don't work for me but you can try

Landius commented 4 years ago

https://github.com/snowie2000/mactype/issues/618#issuecomment-563030772 seems firefox can only be rendered in directwrite mode after 69.x.x

MasonicCGI commented 4 years ago

Thank you for the replies. But does it mean that Firefox supports MacType only if directwrite is enabled? And if so, is it possible to configure this in Firefox?

IgnacioMD commented 4 years ago

I am using Firefox 78, so my answer is referred to that version, i think in Firefox 72 should be the same. BTW: why Firefox 72?. The last version of release channel is 78.0.2, and the last version of esr channel is Firefox 68.10.0.

1.Your MacType profile must contain DirectWrite=1.

2.You must revert the changes made previously in Firefox about:config, for Mactype to work. gfx.direct2d.disabled must be false. gfx.canvas.azure.backends must be direct2d1.1,skia gfx.content.azure.backends must be direct2d1.1,skia

  1. In about:config you must change gfx.font_rendering.cleartype_params.rendering_mode to 5

With this settings MacType works in Firefox, but, at least for my profile, results were much, much better in pre-Firefox 69 versions. The changes are much less noticeable, so much so that I had to take screenshots to realize that it really worked.

MasonicCGI commented 4 years ago

Thank you Ignacio for your help. But I don't understand exactly how to follow this step 1.Your MacType profile must contain DirectWrite=1.

What do you mean?

IgnacioMD commented 4 years ago

The Mactype profile is an .ini file located at C: \ Program Files \ MacType \ ini. If you know what profile you are using (since the folder contains several, from which you can choose), you can open it with notepad and edit it to add a line that says Directwrite = 1

If you don't know which profile are you using, follow this steps

  1. If there is a Mactype icon in the notification area, go directly to point 2. If not, open (from the Windows Start Menu), Mactype Wizard (MacType 用户 向导, white and yellow icon with an "A"), take note of how it is configured (probably registry or run as a service), and choose "Load with Mactray". -> Next -> Finish -> OK -> Close.

  2. Right click on the Mactype icon, -> Open profile -> Open with Notepad. Your profile, the .ini file in use, will open and, if it doesn't have it, add a line that says Directwrite = 1 under the section [General], and save.

  3. Right click on the Mactype icon, -> Restart

After that, Directwrite support will be enabled, and should work.

  1. If you don't want Mactype as an icon in your notification area, open Mactype Wizard again, and revert the change made in 1.

  2. If the result does not satisfy you, within the [Directwrite] section of the profile, which can be created if it is not present, several parameters can be configured to modify the rendering, but in that I can no longer help you, I have not even managed a result that satisfies myself.

Dim-Tim-1963 commented 4 years ago

Could someone tell how to get Mactype to work again on Firefox?

I still use Waterfox Classic (couldn't abandon all of my favorite extensions :), and with it Mactype works brilliantly (in GDI mode) in both Windows 7 and 10. But recently I tried Firefox Portable 79 (in Windows 7), and it also works with MacType (also in GDI mode).

magicgoose commented 4 years ago

Even with directwrite enabled in profile, the results are hit or miss, on some websites it clearly isn't working, and sometimes it's not working for certain parts of a website and it's not consistent too (sometimes works, sometimes not). On some sites like https://tour.golang.org the result is even worse, glyphs frequently get re-drawn differently which looks like they're slightly jumping and changing the thickness.
Is there anything else that could be tried to make it work in FF normally?

greatquux commented 3 years ago

While I did have to change all those settings in https://github.com/snowie2000/mactype/issues/673#issuecomment-658288950 to get it to work in Firefox (88.0.1) I did not experience any issues on the tour.golang.org site, so it was either a bug in the site or browser that got fixed. The changes to rendering are definitely slight, but hopefully will improve with time. Not sure when they will release a new binary for MacType...

iambesi commented 3 years ago

Hello,

I am using the latest version of Firefox (currently, 89.0.1), and even after following the workaround steps, I am still not seeing ANY difference at all. Or, if it is as @greatquux stated, the changes to the rendering are so slight that these old eyes cannot detect it. I have even tried installing the latest RC of MacType (that is, MacType 2021.1-RC1), but still nothing. This is very sad because I love MacType and use Firefox all the time. :-(

With that said, has anyone out there had any success with getting this to work? If so, please let the rest of us know your exact Firefox settings and what MacType profile you are using. Or, if it is a custom one, please consider posting it so that the rest of us can give it a go.

Thanks, Iambesi

Dim-Tim-1963 commented 3 years ago

I still use Waterfox Classic, based on Firefox 56. Some rare sites complain that don't support it anymore, then I use Vivaldi. It's more convenient, modern-looking and configurable, than the new Firefox. And though it's based on Chromium and doesn't support GDI anymore, one can at least install extension "Font Rendering Enhancer", that makes fonts darker. The real problem for my old eyes are "too smart" site designers, who use light and/or thin fonts. :) If I use such site regularly, I write for it a CSS in Stylus...

nostam commented 3 years ago

Hello,

I am using the latest version of Firefox (currently, 89.0.1), and even after following the workaround steps, I am still not seeing ANY difference at all. Or, if it is as @greatquux stated, the changes to the rendering are so slight that these old eyes cannot detect it. I have even tried installing the latest RC of MacType (that is, MacType 2021.1-RC1), but still nothing. This is very sad because I love MacType and use Firefox all the time. :-(

With that said, has anyone out there had any success with getting this to work? If so, please let the rest of us know your exact Firefox settings and what MacType profile you are using. Or, if it is a custom one, please consider posting it so that the rest of us can give it a go.

Thanks, Iambesi

I have been using mactype with firefox (90.0b9) without any issue, IIRC, gfx.content.azure.backends and gfx.canvas.azure.backends has to be direct2d1.1,skia

Dioxaz commented 2 years ago

Hello all, I'm having the same exact problem as @iambesi. I just can't get Firefox 94 to work with MacType regardless of what I try. For my testing, I'm under Windows 7 and registry mode for now and would like to use greyscale anti-aliasing as I plan to install MacType on some particular dual-screen setups where one monitor is BGR instead of RGB. DirectWrite is indeed enabled for the profile I'm trying to use.

I've tried all suggestions in this thread (and some other threads) so far to no avail. I'm not seeing any difference at all. And the greyscale test is particularly foolproof as you can see the results right away when taking a screenshot of a Firefox window. There seems to be some contradictory indications of what to try and not to try for recent versions of Firefox but no clear updated indications to my knowledge (or I didn't find them yet). Did I miss something crucial?

For anyone having Macwrite still working in Firefox, can you post a screenshot of your Firefox window after setting anti-aliasing to greyscale? If that appears to work, can you post all the modifications you did to make it work? That would be really nice, thank you.

Regards

monoblaine commented 1 year ago

There's a feature request on Mozilla Connect to bring back GDI rendering support (Particularly to make MacType functional again). Adding a "thumbs up" on the first post would be quite helpful.