adoptium / adoptium/adoptium-support

Fonts with contextual alternates are not correct rendered

Open
#291 23 comments 0 reactions 0 assignees View on GitHub
bug jbs:reported keep
Dominant language
No language data
Stars
59
Forks
13
PR merge metrics
No merged PRs in 30d

Description

[![Bountysource](https://www.bountysource.com/badge/issue?issue_id=98023722&style=bounties_posted)](https://www.bountysource.com/issues/98023722-fonts-with-contextual-alternates-are-not-correct-rendered?utm_source=Bountysource&utm_medium=shield&utm_campaign=bounties_posted)

Pay attention to the e's, for example:

**AdoptOpenJDK 8:** _**wrong**_ rendering for font size _**less**_ than _**101**_ and other _**wrong**_ rendering for font size _**greater**_ than _**100**_
![java-8_font_with_contextual_alternates_not_correct_rendering_below_font_size_100](https://user-images.githubusercontent.com/125954/115042211-8f09bc00-9ed3-11eb-8042-d628c9025378.png)

**AdoptOpenJDK 11-16, 19:** _**wrong**_ rendering for font size _**less**_ than _**101**_ and **correct** rendering for font size **greater** than **100**
![java-11_font_with_contextual_alternates_not_correct_rendering_below_font_size_100](https://user-images.githubusercontent.com/125954/115042239-94670680-9ed3-11eb-874b-bedc9350c9b5.png)

**Example code:**
[FontRederingErrorDemo.zip](https://github.com/AdoptOpenJDK/openjdk-build/files/6325979/FontRederingErrorDemo.zip)

**Fonts with feature contextual alternates:**
- https://bboxtype.com/typefaces/Krikikrak
- http://www.glukfonts.pl/font.php?font=Kleymissky

**OS:**

- Linux:
```
lsb_release -a
LSB Version: 1.4
Distributor ID: Arch
Description: Arch Linux
Release: rolling
Codename: n/a

uname -a
Linux 5.11.15-zen1-2-zen #1 ZEN SMP PREEMPT Sat, 17 Apr 2021 00:22:34 +0000 x86_64 GNU/Linux
```

- Windows 10

It would be great if this could be fixed for OpenJDK 8 (for all sizes).

Contributor guide

Open the contributing guide

Research direction

Start by running the attached FontRederingErrorDemo.zip with the listed contextual-alternate fonts on the reported Java versions and operating systems. Compare the output below and above font size 100, then investigate the rendering difference; done means the contextual alternates render correctly at all sizes, especially on OpenJDK 8.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.