Skip to content

Characters with different font after fallback shaped together #6801

Closed
@miloush

Description

@miloush
  • .NET Core Version: 7.0.100-preview.4.22252.9
  • Windows version: 25151.1000.amd64fre.rs_prerelease.220625-1835
  • Does the bug reproduce also in WPF for .NET Framework 4.8?: Yes

Problem description:

Punctuation, whitespace and alike are treated as base characters, forming clusters with vowel marks (instead of a dotted circle being inserted) when the marks are not in the font. The Indic engine is responsible for inserting the dotted circle, but it does not get to shape the run.

Someone should split the run for shaping if the characters are to be shaped using different fonts as a result of font fallback. My initial guess is line services are to blame.

Visual Studio is one of the affected products, the rendered glyphs depend on how the colorization and tokenization splits the runs:

image

but

image

Here is an example where the character is sometimes clustered with the preceding one (as a question mark in a box) and sometimes rendered as expected with a circle:

Minimal repro:
FallbackShaping.zip

image

Metadata

Metadata

Labels

InvestigateRequires further investigation by the WPF team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions