mactype icon indicating copy to clipboard operation
mactype copied to clipboard

Any plans to support FT_Library_SetLcdGeometry?

Open byungil-oh opened this issue 4 years ago • 10 comments

It looks like FreeType supports different subpixel geometry, such as PenTile arrangement, by FT_Library_SetLcdGeometry (https://www.freetype.org/freetype2/docs/reference/ft2-lcd_rendering.html)

Have you thought about supporting this feature?

byungil-oh avatar Aug 04 '21 00:08 byungil-oh

Okey-dokey. Will pay more attention to it.

Thank you!

snowie2000 avatar Aug 04 '21 02:08 snowie2000

Any update for this would be sincerely appreciated. Right now, you can't adjust the subpixel geometry concisely enough for monitors like the new AW3423DW. For comparison, running the "ftview" command on Linux yields impressive results.

Crayolable avatar Jul 16 '22 17:07 Crayolable

https://freetype.org/freetype2/docs/reference/ft2-lcd_rendering.html#ft_library_setlcdgeometry

Because this new tech is incompatible with our time-proven ClearType style subpixel rendering, it's not possible to introduce it without some modifications. Anyways, I'll give it a shot.

snowie2000 avatar Jul 17 '22 09:07 snowie2000

There is a test build out there just now with LCDGeometry support. Set AntiAliasMode to 6 to enable experimental pentile support.

Looking forward to your feedback.

snowie2000 avatar Jul 20 '22 03:07 snowie2000

I've made a copy of the default profile (renamed to "Default_fix.ini") and added the following to it, but there seems to be no difference when toggling between the two:

[General]
PixelLayout=-21,-16,0,16,21,-16

Verified this in Windows Explorer, Firefox, Discord & Notepad. Quitting and then reopening any of these applications, or even restarting the system between profile changes has no effect, something I verified by taking multiple photos of the same text after each troubleshooting step.

Is there anything in particular you'd like me to try?

Crayolable avatar Jul 20 '22 13:07 Crayolable

Could you please upload your profile so that I can try it ?

snowie2000 avatar Jul 20 '22 13:07 snowie2000

Absolutely, thank you! Default_fix.zip

Crayolable avatar Jul 20 '22 13:07 Crayolable

Untitled Compare side by side, they do have a significant difference.

If you're on a hidpi display, you need to save the image to disk and view it in a image viewer. Browsers will automatically zoom it so that everything is in blur.

snowie2000 avatar Jul 20 '22 13:07 snowie2000

I'll have to try it again later and see where I went wrong then: probably just user error of some sort. Thank you again for your work on MacType!

Crayolable avatar Jul 20 '22 13:07 Crayolable

You can test against your profile with our new visual tuner. It's super handy and easy to use.

It's just only works on 32bit apps for now.

snowie2000 avatar Jul 20 '22 13:07 snowie2000