sciter-js-sdk
sciter-js-sdk copied to clipboard
RTL content not rendered correctly under Linux
RTL directions and languages are rendered correctly under Windows but not under Linux(LMDE4). Affected targets are styled with background-color: pink;
Windows: Windows7 x64
Linux: LMDE4 x64
Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sciter: Test Direction</title>
<style>
body {
margin: 5px 80px;
}
b {
font-size: 14px;
}
div {
margin-bottom: 4px;
font-size: 18px;
background-color: #e0e0e0;
border-bottom: solid 1px #bbb;
}
</style>
</head>
<body>
<b>LTR</b>
<div>English</div>
<div style="text-align: right;">English: right aligned</div>
<br>
<b>LTR Language | RTL direction:</b>
<div style="background-color: pink;" dir="rtl">English: right aligned</div>
<div style="background-color: pink; direction: rtl;">English: direction: rtl</div>
<br>
<b>RTL Language | RT direction:</b>
<div class="arabic" style="background-color: pink;">اللغة العربية</div>
<br>
<b>RTL Language with RTL direction</b>
<div class="arabic" style="background-color: pink;" dir="rtl">اللغة العربية</div>
<div class="arabic" style="background-color: pink; direction: rtl;">اللغة العربية</div>
<script>
// Window.this.move(0, 0, 550, 350)
</script>
</body>
</html>
RTL support in Sciter on Linux is a bit sketchy now. I definitely need to look on it.