On Sat, 25 Jun 2022 01:13:34 GMT, Nikita Gubarkov <[email protected]> wrote:
>> Nikita Gubarkov has updated the pull request incrementally with two
>> additional commits since the last revision:
>>
>> - 8269806: Fix rendering of colored glyphs on big font sizes
>>
>> When using OutlineTextRenderer, fallback to GlyphListPipe for glyphs
>> which doesn't have outlines.
>> - 8269806: Fix glyph advance rounding with FM=OFF
>
> src/java.desktop/share/classes/sun/java2d/pipe/OutlineTextRenderer.java line
> 75:
>
>> 73: public void drawString(SunGraphics2D g2d, String str, double x,
>> double y) {
>> 74:
>> 75: StandardGlyphVector sgv = new StandardGlyphVector(g2d.getFont(),
>> str, g2d.getFontRenderContext());
>
> I started using `GlyphVector` instead of `TextLayout` because it gives more
> consistent look for animated text. For example, earlier text which has
> ligatures rendered with `drawString` was drawn with ligatures on
> `OutlineTextRenderer` and without on `GlyphListPipe`, which caused artifacts
> when text size crosses 100 threshold.
Oh I see this is incorrect, I will try to come up with a different approach
-------------
PR: https://git.openjdk.org/jdk/pull/4798