mirror of
https://github.com/penpot/penpot.git
synced 2025-03-10 06:41:40 -05: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
|
||||
|
||||
## :rocket: 1.19.0
|
||||
## 1.19.0
|
||||
|
||||
### :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)
|
||||
- Improve dashboard performance related to thumbnails; now the thumbnails are
|
||||
rendered as bitmap images.
|
||||
- Add the ability to disable google fonts provider with the `disable-google-fonts-provider` flag
|
||||
|
||||
### :bug: Bugs fixed
|
||||
|
||||
|
|
|
@ -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
Reference in a new issue