Skip to content

Commit

Permalink
prioritise ucsur-supporting fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
sowelipililimute committed Apr 12, 2024
1 parent e51cdbf commit 129a784
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@
.filter(x => !wantsExtension || x[1].extendedGlyphs)
.filter(x => !wantsVariants || x[1].variantGlyphs)
.filter(x => !wantsRandom || x[1].randomizedGlyphs)
.toSorted((a, b) => a[0].localeCompare(b[0]))
.toSorted((a, b) => {
if (a[1].ucsurCodepoints && b[1].ucsurCodepoints) {
return 0
} else if (a[1].ucsurCodepoints && !b[1].ucsurCodepoints) {
return -1
} else {
return 1
}
})
</script>

<svelte:head>
Expand Down

0 comments on commit 129a784

Please sign in to comment.