Disables glyph composition feature for enclosing+base (only permits order base+enclosing). Closes #335

This commit is contained in:
Rasmus Andersson 2021-03-29 17:09:05 -07:00
parent 240270c837
commit 9b8f3f1b5a
4 changed files with 40 additions and 125 deletions

View file

@ -198,6 +198,7 @@ if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
<div class="checkbox-group">
<span>Default-on features:</span>
<label title="Contextual alternates"><input type="checkbox" class="featopt" name="feat:calt=0"> Disable calt &nbsp;(Contextual alternates)</label>
<label title="Glyph Composition/Decomposition"><input type="checkbox" class="featopt" name="feat:ccmp=0"> Disable ccmp</label>
<label title="Kerning"><input type="checkbox" class="featopt" name="feat:kern=0"> Disable kern &nbsp;(Kerning)</label>
</div>

View file

@ -258,7 +258,7 @@ input[type="checkbox"]::after {
height:var(--checkbox-handle-size);
border-radius:var(--checkbox-handle-size);
transform: translate(0, 0);
transition: all 168ms ease-out; /*cubic-bezier(0.09, 0.49, 0.71, 0.98);*/
transition: all 90ms ease-out; /*cubic-bezier(0.09, 0.49, 0.71, 0.98);*/
}
input[type="checkbox"][checked] {
background-color: var(--checkbox-on-bg);

View file

@ -173,7 +173,7 @@ samples.set('Feature: ccmp', `
/i <modifier> --> /idotless ==> i\u0300
/idotless /gravecomb --> /igrave ==> \u0131\u0300
Enclosing glyphs (glyph + {U+20DD,U+20DE})
Enclosing glyphs (base + {U+20DD,U+20DE})
U+20DD COMBINING ENCLOSING CIRCLE:
U+20DE COMBINING ENCLOSING SQUARE:
@ -204,6 +204,15 @@ U\u20DE V\u20DE W\u20DE X\u20DE Y\u20DE Z\u20DE !\u20DE ?\u
\u20DE \u20DE \u20DE \u20DE
HE\u20DDLLO WO\u20DERLD
The following should NOT compose but instead replace U+20DD or U+20DE with largeCircle or whiteLargeSquare: (They are in the wrong order: {U+20DD,U+20DE} + base. This was fixed in version 3.18.)
\u20DDA \u20DDB \u20DDC \u20DD1 \u20DD2 \u20DD3
\u20DEA \u20DEB \u20DEC \u20DE1 \u20DE2 \u20DE3
;\u20DDELLO ;\u20DEORLD
`)