not_space.clj 524 B

1234567891011121314
  1. (ns fira-code.not-space
  2. (:require
  3. [clojure.string :as str]
  4. [fira-code.glyphs :as glyphs]))
  5. (defn regen-not-space [font]
  6. (let [not-spaces (->> (:glyphs font)
  7. (remove #(re-find #"^\.|space$|space\." (:glyphname %)))
  8. (remove #(= "0" (:export %)))
  9. (map :glyphname)
  10. (sort))]
  11. (println " regenerated NotSpace:" (count not-spaces) "glyphs")
  12. (glyphs/update-code font :classes "NotSpace" (constantly (str/join " " not-spaces)))))