sciter-js-sdk icon indicating copy to clipboard operation
sciter-js-sdk copied to clipboard

RTL content not rendered correctly under Linux

Open jsprog opened this issue 4 years ago • 1 comments

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 Screenshot-WIN7

Linux: LMDE4 x64 Screenshot-LMDE4

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>


jsprog avatar Nov 10 '20 17:11 jsprog

RTL support in Sciter on Linux is a bit sketchy now. I definitely need to look on it.

c-smile avatar Nov 10 '20 19:11 c-smile