🐛 Fix when font-weight is a computed int (math resolver)

This commit is contained in:
Florian Schroedl 2025-09-04 10:57:19 +02:00 committed by Alejandro Alonso
parent 9eda1d0d78
commit 25950be077

View File

@ -426,7 +426,8 @@
(into acc (zipmap vs (repeat k)))) {})))
(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)?$"))]
{:variant variant
:italic? (some? italic)}))