mirror of
https://github.com/penpot/penpot.git
synced 2025-05-20 02:46:09 +02:00
✨ Add the ability to disable the google fonts provider
This commit is contained in:
parent
33e0e6293b
commit
7feda98eb3
3 changed files with 7 additions and 3 deletions
|
@ -59,7 +59,8 @@
|
|||
:webworker))
|
||||
|
||||
(def default-flags
|
||||
[:enable-newsletter-subscription])
|
||||
[:enable-newsletter-subscription
|
||||
:enable-google-fonts-provider])
|
||||
|
||||
(defn- parse-flags
|
||||
[global]
|
||||
|
|
|
@ -65,7 +65,9 @@
|
|||
(merge db (d/index-by :id fonts))))))
|
||||
|
||||
(register! :builtin local-fonts)
|
||||
(register! :google google-fonts)
|
||||
|
||||
(when (contains? cf/flags :google-fonts-provider)
|
||||
(register! :google google-fonts))
|
||||
|
||||
(defn get-font-data [id]
|
||||
(get @fontsdb id))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue