[OpenJDK 2D-Dev] RFR: 8269806: Emoji rendering on Linux

Phil Race prr at openjdk.java.net
Mon Aug 23 04:55:29 UTC 2021


On Thu, 15 Jul 2021 17:29:01 GMT, Nikita Gubarkov <github.com+9004656+YaaZ at openjdk.org> wrote:

> It was implemented in JetBrains Runtime a year ago and was ported & refactored for this PR
> It includes:
> - Bitmap glyph loading via Freetype
> - Manual scaling & transformation of bitmap glyphs with nearest-neighbor or bilinear-mipmap style algorithms depending on the text antialiasing hint
> - Storing BGRA glyphs in glyph cache & rendering them as plain images, as currently used XRender text drawing functions doesn't support colored glyphs
> - Small fixes in related code like null-checks which could cause NPE & comment typos

In addition I think the test is a bit flaky
"Noto Color Emoji" *may not* be available on all Linuxes and for whatever reason your update makes the test fail on Mac.
test result: Error. can't find Emoji in test directory or libraries

So lots to do here before I look again.

-------------

PR: https://git.openjdk.java.net/jdk/pull/4798


More information about the 2d-dev mailing list