JetBrains / skija

Java bindings for Skia
Apache License 2.0
2.63k stars 127 forks source link

Doesn't seem to be any way to use LCD font rendering? #156

Open Barney-x1 opened 5 months ago

Barney-x1 commented 5 months ago

I couldn't find anything which looked like it would do this in the source.

I note that in SkiaSharp this is achieved via SKPaint.LcdRenderText property.

Have I missed something? Could this be added?

Is there any workaround/hack to access this?

It seems to me that getting font rendering to look exactly like it does in Chrome and other Skia based apps would be one of the biggest reasons for trying/using skija, so this seems pretty major to me.

Many thanks.

tonsky commented 5 months ago

Hi! Skija project has moved, what you are looking for is here https://github.com/HumbleUI/Skija/blob/33d80f114d210e3d50afb118f16bccc242a5480e/examples/scenes/src/FontRenderingScene.java#L53