mirror of
https://github.com/penpot/penpot.git
synced 2026-09-10 22:19:19 +00:00
🐛 Fix when font-weight is a computed int (math resolver)
This commit is contained in:
parent
a79be05261
commit
5230d54551
@ -426,7 +426,8 @@
|
|||||||
(into acc (zipmap vs (repeat k)))) {})))
|
(into acc (zipmap vs (repeat k)))) {})))
|
||||||
|
|
||||||
(defn parse-font-weight [font-weight]
|
(defn parse-font-weight [font-weight]
|
||||||
(let [[_ variant italic] (->> (str/lower font-weight)
|
(let [[_ variant italic] (->> (str font-weight)
|
||||||
|
(str/lower)
|
||||||
(re-find #"^(.+?)\s*(italic)?$"))]
|
(re-find #"^(.+?)\s*(italic)?$"))]
|
||||||
{:variant variant
|
{:variant variant
|
||||||
:italic? (some? italic)}))
|
:italic? (some? italic)}))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user