mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-08 03:23:11 +00:00
My own previous commit introduced this: moving the bare "serif" needle after the sans list to let "Microsoft Sans Serif" read as sans also let "gothic" win in "Sweet Gothic Serif", a real serif family, which review caught. The rule is narrower than either ordering. A name holding "serif" is serif, and that outranks the sans indicators; the only exception is the phrase it ends: "sans serif" and "sans-serif" are the name of a sans face. So the phrase is removed before the word is looked for, which keeps both spellings sans and gives every explicitly serif name back. Korean serif names stay ahead of all of it, so "Noto Sans Myungjo" and "Myungjo Gothic" are unchanged.