Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.
This repository was archived by the owner on May 28, 2025. It is now read-only.

Text drawn through CTFrameDraw will shadow and alpha compose itself #1935

@DHowett-MSFT

Description

@DHowett-MSFT

Because CTFrameDraw (eventually) calls __CGContext::DrawGlyphRun once per line, it invokes the CG shadowing and composition stack multiple times.
If a shadow is applied, this will result in later lines shadowing earlier lines. The same applies to rendering non-opaque text: overlapping regions will be composed instead of merged into a single draw region.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions