snowie2000 / mactype

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

In Firefox, on some websites, MacType flickers on and then off #439

Open sammilucia opened 6 years ago

sammilucia commented 6 years ago

In Firefox, on some websites, MacType flickers on and then off until a CSS animation occurrs, where it turns on for half a second then its off again. I'm running Firefox 63.0b10 on Windows 10 build 17133 on a laptop with an i7-7700HQ and a GTX 1050.

Initial: image A second later: image

Really annoying, looking for a fix but can't find one.

Originally posted by @justablob in https://github.com/snowie2000/mactype/issues/427#issuecomment-425660028

sammilucia commented 6 years ago

@justablob thanks for reporting was this happening in Firefox 62 for you?

justablob commented 6 years ago

Yup, it happens on 62.0.2 aswell.

justablob commented 6 years ago

Also, another Firefox bug, when setting gfx.direct2d.disabled to true, skewed text isn't anti-aliased: image vs. image

and with gfx.direct2d.disabled == false, text is always anti-aliased and looks nice.

snowie2000 commented 6 years ago

skewed text is not supported with MacType. However directwrite support everything, it's just not good enough.

justablob commented 6 years ago

Are there plans to support skewed text?

sammilucia commented 6 years ago

It may or may not be related... I can repro the flashing behaviour in CentBrowser when MacType is unloaded. Perhaps something is interfering with the MacType process.

To repro:

  1. Open Cent, browse any websites
  2. Stop MacType service
  3. Start MacType service
  4. Go back to Cent (without restarting it)
  5. Reload the pages, or browse pages
  6. Fonts flash back and forth as described
justablob commented 6 years ago

To follow up, disabling MBAM and Defender did not help.

sammilucia commented 6 years ago

Thanks so much for confirming @justablob ! We'll look at this once snowie's back 😊

snowie2000 commented 6 years ago

@sammilucia Could you upload a gif refecting of the issue? I really can't reproduce it on my browser.

Alazari-main commented 5 years ago

Hi @snowie2000,

I'm not @sammilucia, but I'm experiencing this issue as well. Hope these GIFs will come in hand:

With DirectWrite enabled:

fVfZRmHYANHn0bnArY6t1eO4MV58Ommde0nFywS8

With DirectWrite disabled:

vSqt4JGhnliaFtePJFAY38SHP4Qu0xkcfUCWmTWL

Here's the profile I was using while capturing those gifs:

[General]
HintingMode=1
AntiAliasMode=2
NormalWeight=0
BoldWeight=0
ItalicSlant=0
EnableKerning=0
GammaMode=0
LcdFilter=1
BolderMode=0
TextTuning=0
TextTuningR=0
TextTuningG=0
TextTuningB=0
GammaValue=1.8
Contrast=1.0
RenderWeight=1.6
Fontlink=1
HookChildProcesses=1
FontLoader=0
FontSubstitutes=0
Shadow=1,1,0,0x0,0,0x0
MaxBitmap=0
DirectWrite=1
HintSmallFont=0
CacheMaxFaces=512
CacheMaxSizes=12554432
CacheMaxBytes=52428800
Name=Custom

[DirectWrite@firefox.exe]
RenderingMode=5
[Experimental@firefox.exe]
ClipBoxFix=1

[DirectWrite@rider64.exe]
RenderingMode=3
[Experimental@rider64.exe]
ClipBoxFix=1

[UnloadDll]
devenv.exe
ConEmuC.exe
conhost.exe
git.exe
powershell.exe
[exclude]
[FontSubstitutes]
[Individual]
[ExcludeSub]
[DirectWrite]
RenderingMode=5
Contrast=1.0
ClearTypeLevel=1.0

Firefox version:

image