mirror of
https://github.com/penpot/penpot.git
synced 2025-07-27 12:07:25 +02:00
🐛 Fix font for guides and rulese
This commit is contained in:
parent
37a35b1827
commit
b4c87ad0b9
2 changed files with 6 additions and 6 deletions
|
@ -196,13 +196,13 @@
|
||||||
|
|
||||||
(if (= axis :x)
|
(if (= axis :x)
|
||||||
{:rect-x (- pos (/ guide-pill-width 2))
|
{:rect-x (- pos (/ guide-pill-width 2))
|
||||||
:rect-y (+ (:y vbox) rules-pos (- (/ guide-pill-width 2)) (/ 2 zoom))
|
:rect-y (+ (:y vbox) rules-pos (- (/ guide-pill-width 2)) (/ 3 zoom))
|
||||||
:rect-width guide-pill-width
|
:rect-width guide-pill-width
|
||||||
:rect-height guide-pill-height
|
:rect-height guide-pill-height
|
||||||
:text-x pos
|
:text-x pos
|
||||||
:text-y (+ (:y vbox) rules-pos (- (/ 3 zoom)))}
|
:text-y (+ (:y vbox) rules-pos (- (/ 3 zoom)))}
|
||||||
|
|
||||||
{:rect-x (+ (:x vbox) rules-pos (- (/ guide-pill-height 2)) (- (/ 5 zoom)))
|
{:rect-x (+ (:x vbox) rules-pos (- (/ guide-pill-height 2)) (- (/ 4 zoom)))
|
||||||
:rect-y (- pos (/ guide-pill-width 2))
|
:rect-y (- pos (/ guide-pill-width 2))
|
||||||
:rect-width guide-pill-height
|
:rect-width guide-pill-height
|
||||||
:rect-height guide-pill-width
|
:rect-height guide-pill-width
|
||||||
|
@ -363,8 +363,8 @@
|
||||||
:text-anchor "middle"
|
:text-anchor "middle"
|
||||||
:dominant-baseline "middle"
|
:dominant-baseline "middle"
|
||||||
:transform (when (= axis :y) (str "rotate(-90 " text-x "," text-y ")"))
|
:transform (when (= axis :y) (str "rotate(-90 " text-x "," text-y ")"))
|
||||||
:style {:font-size (/ 13 zoom)
|
:style {:font-size (/ rules/font-size zoom)
|
||||||
:font-family "sourcesanspro"
|
:font-family rules/font-family
|
||||||
:fill colors/black}}
|
:fill colors/black}}
|
||||||
(str (mth/round pos))]]))])))
|
(str (mth/round pos))]]))])))
|
||||||
|
|
||||||
|
|
|
@ -25,8 +25,8 @@
|
||||||
(def over-number-size 50)
|
(def over-number-size 50)
|
||||||
(def over-number-opacity 0.7)
|
(def over-number-opacity 0.7)
|
||||||
|
|
||||||
(def font-size 13)
|
(def font-size 12)
|
||||||
(def font-family "sourcesanspro")
|
(def font-family "worksans")
|
||||||
|
|
||||||
;; ----------------
|
;; ----------------
|
||||||
;; RULES
|
;; RULES
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue