@@ -274,7 +274,7 @@ <h4>Gap-adjustments.</h4>
274
274
< h3 > Stylistic Alternates</ h3 >
275
275
< h4 > (for those who prefer)</ h4 >
276
276
< p >
277
- Currently the only implemented stylistic alternate is Oldstyle Figures .< br > < br >
277
+ There are some alternate styles available for certain sets of glyphs .< br > < br >
278
278
(onum) < input type ="checkbox " name ="onum " id ="onum "> < label for ="onum "> Disabled</ label >
279
279
</ p >
280
280
< h4 > Oldstyle Figures (onum)</ h4 >
@@ -289,15 +289,25 @@ <h4>Oldstyle Figures (onum)</h4>
289
289
< br >
290
290
let [x< span class ="hi "> 1</ span > , y< span class ="hi "> 1</ span > ] = [< span class ="hi "> 0</ span > .< span class ="hi "> 12569</ span > , < span class ="hi "> 0</ span > .< span class ="hi "> 45780</ span > ];< br >
291
291
</ div >
292
+ < br >
293
+ < p > (ss01) < input type ="checkbox " name ="ss01 " id ="ss01 "> < label for ="ss01 "> Disabled</ label > </ p >
294
+ < h4 > Straight Comma (ss01)</ h4 >
295
+ < div class ="ex ">
296
+ {a:b[c],d:e}; | Originally, when Pixel Code was first released, it had a< br >
297
+ :;:;:;:;:;:;: | less distinct style for the comma and semicolon; the old< br >
298
+ ,.,.,.,.,.,., | style has been made available as a togglable feature, so< br >
299
+ .:;,.: ;,.:;, | that it can still be used if you preferred it.
300
+ </ div >
292
301
< br > < br >
293
302
< div class ="bottomspacer "> </ div >
294
303
295
304
< script >
296
305
let calt = true ;
297
306
let onum = false ;
298
307
let liga = true ;
308
+ let ss01 = false ;
299
309
const update_style = ( ) => {
300
- document . body . style . fontFeatureSettings = `"calt" ${ + calt } , "onum" ${ + onum } , "liga" ${ + liga } ` ;
310
+ document . body . style . fontFeatureSettings = `"calt" ${ + calt } , "onum" ${ + onum } , "liga" ${ + liga } , "ss01" ${ + ss01 } ` ;
301
311
}
302
312
update_style ( ) ;
303
313
const liga_toggle = document . getElementById ( 'liga' ) ;
@@ -318,6 +328,12 @@ <h4>Oldstyle Figures (onum)</h4>
318
328
onum_toggle . nextElementSibling . textContent = onum ? 'Enabled' : 'Disabled' ;
319
329
update_style ( ) ;
320
330
} ) ;
331
+ const ss01_toggle = document . getElementById ( 'ss01' ) ;
332
+ ss01_toggle . addEventListener ( 'input' , ( ) => {
333
+ ss01 = ss01_toggle . checked ;
334
+ ss01_toggle . nextElementSibling . textContent = ss01 ? 'Enabled' : 'Disabled' ;
335
+ update_style ( ) ;
336
+ } ) ;
321
337
</ script >
322
338
</ body >
323
339
</ html >
0 commit comments