Closed Saif-Alhaider closed 2 weeks ago
This is not the Compose issue. The font behaves the same in a regular html page:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>issues-4949</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap"
rel="stylesheet">
<style>
body {
font-family: 'Tajawal';
font-size: 120px;
color: rgba(0, 0, 0, 0.3);
}
</style>
</head>
<body>
<div>
<h1>تقف المنازل بين الغابات</h1>
</div>
</body>
</html>
Describe the bug I am experiencing issues with color rendering in my Compose Web application when using Arabic fonts. When applying a color with a specific lightness value (e.g., 87%), the text does not render uniformly. Some parts of the Arabic characters appear with inconsistent lightness, leading to visual discrepancies and an uneven appearance.
Affected platforms
Versions
To Reproduce Steps to reproduce the behavior:
Expected behavior The Arabic text should render uniformly with a consistent lightness of 87% across all characters and glyphs
Screenshots
Additional Information I also tried with multiple arabic fonts like Tajawal cairo all gave same result I also tried to use BasicText instead of Text gave me same result