def test_missing_glyph_fallback(assert_pixels):
    # The apostrophe is not included in weasyprint.otf
    assert_pixels('''
        ___zzzzzzzzzzzzzzzzz
        _RRzzzzzzzzzzzzzzzzz
        _RRzzzzzzzzzzzzzzzzz
        ___zzzzzzzzzzzzzzzzz
    ''', '''
      <style>
        @page {
          size: 20px 4px;
        }
        body {
          color: red;
          font-family: weasyprint, %s;
          font-size: 2px;
          line-height: 0;
          margin: 2px 1px;
        }
      </style>a\'''' % SANS_FONTS)
,
tests/draw/test_text.py