The crisp fonts saga
Mark Raynsford
org.openjdk at io7m.com
Sat Dec 16 11:30:58 UTC 2023
On Fri, 2023-12-15 at 17:55 -0800, John Neffenger wrote:
> On 12/15/23 2:21 PM, Mark Raynsford wrote:
> > 2. Add an -fx-font-hinting CSS attribute that, by default, will
> > be
> > set to false. Setting this value to true will enable hinting
> > using whatever is the default (in other words, not setting
> > FT_LOAD_NO_HINTING).
>
> Have you thought of a 'prism.hinting' system property similar to the
> current 'prism.lcdtext'?
>
> Simply being able to toggle off FT_LOAD_NO_HINTING would, I think,
> result in text rendering on Linux similar to the JDK (vertical-only
> hinting when using FreeType 2.8 or later).
>
> A system property would allow end users to control the hinting, too,
> with the added benefit of being a very simple code change.
I have, yes. I actually considered properties for each of these, but I
thought it more important to be able to specify them on a node-by-node
basis.
Of course, I could always do both, as with the way font smoothing is
right now (prism.lcdtext and -fx-font-smoothing-type: gray). :)
--
Mark Raynsford | https://www.io7m.com
More information about the openjfx-dev
mailing list