Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
7.2 KB
Raw Blame
<svg width="260px" height="260px"
     xmlns="http://www.w3.org/2000/svg" version="1.1">
    <defs>
        <style>
        .test {
            font-size: 10pt;
            font-family: FontWithFeaturesOTF;
            fill: blue;
        }
        #test1 .high {
            font-variant-east-asian: normal;
        }
        #test1 .low {
            font-feature-settings: "jp78" off, "jp83" off, "jp90" off, "jp04" off, "smpl" off,  "trad" off, "fwid" off, "pwid" off, "ruby" off ;
        }
        
        #test2 .high {
            font-variant-east-asian: jis78;
        }
        #test2 .low {
            font-feature-settings: "jp78" on, "jp83" off, "jp90" off, "jp04" off, "smpl" off,  "trad" off, "fwid" off, "pwid" off, "ruby" off ;
        }
        
        #test3 .high {
            font-variant-east-asian: jis83;
        }
        #test3 .low {
            font-feature-settings: "jp78" off, "jp83" on, "jp90" off, "jp04" off, "smpl" off,  "trad" off, "fwid" off, "pwid" off, "ruby" off ;
        }
        
        #test4 .high {
            font-variant-east-asian: jis90;
        }
        #test4 .low {
            font-feature-settings: "jp78" off, "jp83" off, "jp90" on, "jp04" off, "smpl" off,  "trad" off, "fwid" off, "pwid" off, "ruby" off ;
        }
        
        #test5 .high {
            font-variant-east-asian: jis04;
        }
        #test5 .low {
            font-feature-settings: "jp78" off, "jp83" off, "jp90" off, "jp04" on, "smpl" off,  "trad" off, "fwid" off, "pwid" off, "ruby" off ;
        }
        
        #test6 .high {
            font-variant-east-asian: simplified;
        }
        #test6 .low {
            font-feature-settings: "jp78" off, "jp83" off, "jp90" off, "jp04" off, "smpl" on,  "trad" off, "fwid" off, "pwid" off, "ruby" off ;
        }
        
        #test7 .high {
            font-variant-east-asian: traditional;
        }
        #test7 .low {
            font-feature-settings: "jp78" off, "jp83" off, "jp90" off, "jp04" off, "smpl" off,  "trad" on, "fwid" off, "pwid" off, "ruby" off ;
        }
        
        #test8 .high {
            font-variant-east-asian: full-width;
        }
        #test8 .low {
            font-feature-settings: "jp78" off, "jp83" off, "jp90" off, "jp04" off, "smpl" off,  "trad" off, "fwid" on, "pwid" off, "ruby" off ;
        }
        
        #test9 .high {
            font-variant-east-asian: proportional-width;
        }
        #test9 .low {
            font-feature-settings: "jp78" off, "jp83" off, "jp90" off, "jp04" off, "smpl" off,  "trad" off, "fwid" off, "pwid" on, "ruby" off ;
        }
        
        #test10 .high {
            font-variant-east-asian: ruby;
        }
        #test10 .low {
            font-feature-settings: "jp78" off, "jp83" off, "jp90" off, "jp04" off, "smpl" off,  "trad" off, "fwid" off, "pwid" off, "ruby" on ;
        }
        </style>
    </defs>

    <g id="testRect" class="test">
        <!-- These tests are all adapted from the font-variant tests of the web-platform-tests: https://github.com/web-platform-tests/wpt/tree/master/css/css-fonts -->

        <rect id="boundingRect" x="5" y="5" width="250" height="250"
            fill="none" stroke="red"/>

        
        <!-- Adapted from font-variant-east-asian-01.html: Test passes if the three lines below are identical, with nine crosses (✗). -->
        <text id="test1" x="7" y="27" >
            <tspan class="high">YZabcdefg</tspan>
            <tspan class="low"  x="7" dy="1em">YZabcdefg</tspan>
            <tspan x="7" dy="1em">BBBBBBBBB</tspan>
        </text>
        
        <!-- Adapted from font-variant-east-asian-02.html: Test passes if the three lines below are identical, with one check mark (✓), then eight crosses (✗). -->
        <text id="test2" x="7" y="77" >
            <tspan class="high">YZabcdefg</tspan>
            <tspan class="low"  x="7" dy="1em">YZabcdefg</tspan>
            <tspan x="7" dy="1em">ABBBBBBBB</tspan>
        </text>
        
        <!-- Adapted from font-variant-east-asian-03.html: Test passes if the three lines below are identical, with one cross (✗), one check mark (✓), then seven crosses (✗). -->
        <text id="test3" x="7" y="127" >
            <tspan class="high">YZabcdefg</tspan>
            <tspan class="low"  x="7" dy="1em">YZabcdefg</tspan>
            <tspan x="7" dy="1em">BABBBBBBB</tspan>
        </text>
        
        <!-- Adapted from font-variant-east-asian-04.html: Test passes if the three lines below are identical, with two crosses (✗), one check mark (✓), then six crosses (✗). -->
        <text id="test4" x="7" y="177" >
            <tspan class="high">YZabcdefg</tspan>
            <tspan class="low"  x="7" dy="1em">YZabcdefg</tspan>
            <tspan x="7" dy="1em">BBABBBBBB</tspan>
        </text>
        
        <!-- Adapted from font-variant-east-asian-05.html: Test passes if the three lines below are identical, with three crosses (✗), one check mark (✓), then five crosses (✗). -->
        <text id="test5" x="7" y="227" >
            <tspan class="high">YZabcdefg</tspan>
            <tspan class="low"  x="7" dy="1em">YZabcdefg</tspan>
            <tspan x="7" dy="1em">BBBABBBBB</tspan>
        </text>
        
         <!-- Adapted from font-variant-east-asian-06.html:Test passes if the three lines below are identical, with four crosses (✗), one check mark (✓), then four crosses (✗). -->
        <text id="test6" x="135" y="27" >
            <tspan class="high">YZabcdefg</tspan>
            <tspan class="low"  x="135" dy="1em">YZabcdefg</tspan>
            <tspan x="135" dy="1em">BBBBABBBB</tspan>
        </text>
        
        <!-- Adapted from font-variant-east-asian-07.html:Test passes if the three lines below are identical, with five crosses (✗), one check mark (✓), then three crosses (✗).  -->
        <text id="test7" x="135" y="77" >
            <tspan class="high">YZabcdefg</tspan>
            <tspan class="low"  x="135" dy="1em">YZabcdefg</tspan>
            <tspan x="135" dy="1em">BBBBBABBB</tspan>
        </text>
        
        <!-- Adapted from font-variant-east-asian-08.html:Test passes if the three lines below are identical, with six crosses (✗), one check mark (✓), then two crosses (✗).  -->
        <text id="test8" x="135" y="127" >
            <tspan class="high">YZabcdefg</tspan>
            <tspan class="low"  x="135" dy="1em">YZabcdefg</tspan>
            <tspan x="135" dy="1em">BBBBBBABB</tspan>
        </text>
        
        <!-- Adapted from font-variant-east-asian-09.html:Test passes if the three lines below are identical, with seven crosses (✗), one check mark (✓), then one cross (✗).  -->
        <text id="test9" x="135" y="177" >
            <tspan class="high">YZabcdefg</tspan>
            <tspan class="low"  x="135" dy="1em">YZabcdefg</tspan>
            <tspan x="135" dy="1em">BBBBBBBAB</tspan>
        </text>
        
        <!-- Adapted from font-variant-east-asian-10.html:Test passes if the three lines below are identical, with eight crosses (✗), then one check mark (✓). -->
        <text id="test10" x="135" y="227" >
            <tspan class="high">YZabcdefg</tspan>
            <tspan class="low"  x="135" dy="1em">YZabcdefg</tspan>
            <tspan x="135" dy="1em">BBBBBBBBA</tspan>
        </text>

    </g>

</svg>