1
0
Fork 0
mirror of synced 2024-06-27 02:30:40 +12:00
FiraCode/clojure/fira_code/not_space.clj

14 lines
524 B
Clojure
Raw Normal View History

2020-03-24 12:37:50 +13:00
(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)))))