mirror of
https://github.com/penpot/penpot.git
synced 2025-05-11 14:26:38 +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
|
@ -1,6 +1,6 @@
|
||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
## :rocket: 1.19.0
|
## 1.19.0
|
||||||
|
|
||||||
### :boom: Breaking changes & Deprecations
|
### :boom: Breaking changes & Deprecations
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@
|
||||||
- Show interactions setting at the view mode [Taiga #1330](https://tree.taiga.io/project/penpot/issue/1330)
|
- Show interactions setting at the view mode [Taiga #1330](https://tree.taiga.io/project/penpot/issue/1330)
|
||||||
- Improve dashboard performance related to thumbnails; now the thumbnails are
|
- Improve dashboard performance related to thumbnails; now the thumbnails are
|
||||||
rendered as bitmap images.
|
rendered as bitmap images.
|
||||||
|
- Add the ability to disable google fonts provider with the `disable-google-fonts-provider` flag
|
||||||
|
|
||||||
### :bug: Bugs fixed
|
### :bug: Bugs fixed
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,8 @@
|
||||||
:webworker))
|
:webworker))
|
||||||
|
|
||||||
(def default-flags
|
(def default-flags
|
||||||
[:enable-newsletter-subscription])
|
[:enable-newsletter-subscription
|
||||||
|
:enable-google-fonts-provider])
|
||||||
|
|
||||||
(defn- parse-flags
|
(defn- parse-flags
|
||||||
[global]
|
[global]
|
||||||
|
|
|
@ -65,7 +65,9 @@
|
||||||
(merge db (d/index-by :id fonts))))))
|
(merge db (d/index-by :id fonts))))))
|
||||||
|
|
||||||
(register! :builtin local-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]
|
(defn get-font-data [id]
|
||||||
(get @fontsdb id))
|
(get @fontsdb id))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue