def test_rtl_default_direction(assert_pixels):
    assert_pixels('''
        _____BBBBB_____
        _____BBBBB_____
        _____BBBBB_____
        _____BBBBB_____
        BBBBBBBBBB_____
    ''', '''
      <style>
        @page { size: 15px 5px }
        body { font-family: weasyprint; color: blue; font-size: 5px; line-height: 1 }
      </style>
      اب
    ''')
,
tests/draw/test_text.py