kopia lustrzana https://github.com/tonsky/FiraCode
Fixed width of `[` `**` (closes #607)
rodzic
b273e21463
commit
24daff0fca
|
@ -2,4 +2,5 @@
|
||||||
FiraCode_liga.glyphs
|
FiraCode_liga.glyphs
|
||||||
FiraCode_mess.glyphs
|
FiraCode_mess.glyphs
|
||||||
target
|
target
|
||||||
clojure/FiraCode.edn
|
clojure/*.edn
|
||||||
|
FiraCode\ (Autosaved).glyphs
|
|
@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file.
|
||||||
#### WIP
|
#### WIP
|
||||||
|
|
||||||
- Added `<==>` ([#392])
|
- Added `<==>` ([#392])
|
||||||
|
- Fixed width of `[` `**` ([#607])
|
||||||
|
|
||||||
#### 1.205 (February 27, 2018)
|
#### 1.205 (February 27, 2018)
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
{
|
{
|
||||||
.appVersion = "939";
|
.appVersion = "939";
|
||||||
|
DisplayStrings = (
|
||||||
|
/asterisk_asterisk.liga
|
||||||
|
);
|
||||||
classes = (
|
classes = (
|
||||||
{
|
{
|
||||||
automatic = 1;
|
automatic = 1;
|
||||||
|
@ -62903,9 +62906,9 @@ width = 600;
|
||||||
unicode = 037A;
|
unicode = 037A;
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
color = 6;
|
color = 4;
|
||||||
glyphname = zero;
|
glyphname = zero;
|
||||||
lastChange = "2018-02-27 09:51:08 +0000";
|
lastChange = "2018-09-27 17:28:30 +0000";
|
||||||
layers = (
|
layers = (
|
||||||
{
|
{
|
||||||
background = {
|
background = {
|
||||||
|
@ -64101,9 +64104,9 @@ width = 600;
|
||||||
unicode = 0039;
|
unicode = 0039;
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
color = 6;
|
color = 4;
|
||||||
glyphname = zero.tosf;
|
glyphname = zero.tosf;
|
||||||
lastChange = "2018-02-27 09:51:13 +0000";
|
lastChange = "2018-09-27 17:28:30 +0000";
|
||||||
layers = (
|
layers = (
|
||||||
{
|
{
|
||||||
background = {
|
background = {
|
||||||
|
@ -70540,9 +70543,9 @@ width = 600;
|
||||||
unicode = 007D;
|
unicode = 007D;
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
color = 4;
|
color = 6;
|
||||||
glyphname = bracketleft;
|
glyphname = bracketleft;
|
||||||
lastChange = "2018-02-27 11:13:44 +0000";
|
lastChange = "2018-09-27 17:28:22 +0000";
|
||||||
layers = (
|
layers = (
|
||||||
{
|
{
|
||||||
layerId = UUID0;
|
layerId = UUID0;
|
||||||
|
@ -70561,7 +70564,7 @@ nodes = (
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
width = 610;
|
width = 600;
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
layerId = "BF448B58-7A35-489E-A1C9-12628F60690C";
|
layerId = "BF448B58-7A35-489E-A1C9-12628F60690C";
|
||||||
|
@ -71584,7 +71587,7 @@ width = 600;
|
||||||
color = 3;
|
color = 3;
|
||||||
export = 0;
|
export = 0;
|
||||||
glyphname = hyphen.rem;
|
glyphname = hyphen.rem;
|
||||||
lastChange = "2016-08-30 09:37:14 +0000";
|
lastChange = "2018-09-27 17:40:22 +0000";
|
||||||
layers = (
|
layers = (
|
||||||
{
|
{
|
||||||
layerId = UUID0;
|
layerId = UUID0;
|
||||||
|
@ -71599,7 +71602,7 @@ nodes = (
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
width = 601;
|
width = 600;
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
layerId = "BF448B58-7A35-489E-A1C9-12628F60690C";
|
layerId = "BF448B58-7A35-489E-A1C9-12628F60690C";
|
||||||
|
@ -72433,7 +72436,7 @@ width = 600;
|
||||||
{
|
{
|
||||||
color = 3;
|
color = 3;
|
||||||
glyphname = asterisk_asterisk.liga;
|
glyphname = asterisk_asterisk.liga;
|
||||||
lastChange = "2018-09-17 17:26:08 +0000";
|
lastChange = "2018-09-27 17:41:06 +0000";
|
||||||
layers = (
|
layers = (
|
||||||
{
|
{
|
||||||
components = (
|
components = (
|
||||||
|
@ -72447,7 +72450,7 @@ transform = "{1, 0, 0, 1, -25, 0}";
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
layerId = UUID0;
|
layerId = UUID0;
|
||||||
width = 651;
|
width = 600;
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
components = (
|
components = (
|
||||||
|
|
|
@ -93,7 +93,35 @@
|
||||||
(parse-anything!)))
|
(parse-anything!)))
|
||||||
|
|
||||||
(defn -main [& args]
|
(defn -main [& args]
|
||||||
(let [f (-> (slurp "FiraCode.glyphs") parse)]
|
(let [font (-> (slurp "FiraCode.glyphs") parse)]
|
||||||
(with-open [os (io/writer "clojure/FiraCode.edn")]
|
(with-open [os (io/writer "clojure/FiraCode.edn")]
|
||||||
(binding [*out* os]
|
(binding [*out* os]
|
||||||
(fipp/pprint f {:width 200})))))
|
(fipp/pprint font {:width 200})))))
|
||||||
|
|
||||||
|
(def weights {:Regular "UUID0"
|
||||||
|
:Bold "BF448B58-7A35-489E-A1C9-12628F60690C"})
|
||||||
|
|
||||||
|
(defn layer [l]
|
||||||
|
{ :id (case (:layerId l)
|
||||||
|
(:Regular weights) "Regular"
|
||||||
|
(:Bold weights) "Bold"
|
||||||
|
(:layerId l))
|
||||||
|
:width (:width l) })
|
||||||
|
|
||||||
|
(defn save-not600 []
|
||||||
|
(let [font (-> (slurp "FiraCode.glyphs") parse)]
|
||||||
|
(with-open [os (io/writer "clojure/FiraCode_not600.edn")]
|
||||||
|
(binding [*out* os]
|
||||||
|
(let [glyphs (for [glyph (:glyphs font)
|
||||||
|
:when (->> (:layers glyph)
|
||||||
|
(filter #(contains? (set (vals weights)) (:layerId %)))
|
||||||
|
(every? #(= 600 (:width %)))
|
||||||
|
(not))]
|
||||||
|
{:glyphname (:glyphname glyph)
|
||||||
|
:layers (mapv layer (:layers glyph))})]
|
||||||
|
(doseq [glyph glyphs]
|
||||||
|
(fipp/pprint glyph {:width 200}))
|
||||||
|
(count glyphs))))))
|
||||||
|
|
||||||
|
;; (-main)
|
||||||
|
;; (save-not600)
|
Ładowanie…
Reference in New Issue