1
0
Fork 0
mirror of synced 2024-05-03 20:23:46 +12:00
FiraCode/clojure/fira_code/not_space.clj
2020-03-24 00:37:50 +01:00

14 lines
524 B
Clojure

(ns fira-code.not-space
(:require
[clojure.string :as str]
[fira-code.glyphs :as glyphs]))
(defn regen-not-space [font]
(let [not-spaces (->> (:glyphs font)
(remove #(re-find #"^\.|space$|space\." (:glyphname %)))
(remove #(= "0" (:export %)))
(map :glyphname)
(sort))]
(println " regenerated NotSpace:" (count not-spaces) "glyphs")
(glyphs/update-code font :classes "NotSpace" (constantly (str/join " " not-spaces)))))