-
Notifications
You must be signed in to change notification settings - Fork 3
/
readme.txt
255 lines (145 loc) · 5.55 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
=== Embed Google Fonts ===
Contributors: adrian2k7,moewe, creabrain
Tags: google fonts, embed, gdpr
Donate link: https://www.paypal.com/paypalme/scrobbleme/5
Requires at least: 6.1
Tested up to: 6.5.2
Stable tag: 3.1.1
Requires PHP: 8.0
License: GPL v3
License URI: http://www.gnu.org/copyleft/gpl.html
Embed Google Fonts tries to automatically replace registered Google Fonts from themes and plugin with local versions, directly loaded from your own server.
== Description ==
Embed Google Fonts tries to automatically replace registered Google Fonts from themes and plugins with local versions, directly loaded from your own server.
**Contribute**: [https://github.com/moewe-io/embed-google-fonts](https://github.com/moewe-io/embed-google-fonts)
**Notes**
* The first request might be very slow, as fonts are downloaded and cached the first time they are requested.
* This doesn't automatically replace all your Google fonts with local versions. If a plugin/theme doesn't use WordPress wp_enqueue_style it probably won't work.
* Loaded fonts are not optimized, means, the whole font including all subsets is loaded
* See FAQ for instructions to use locally hosted fonts directly and avoid using Heroku
**Thank you:** Fonts are downloaded using: [https://gwfh.mranftl.com/fonts](https://gwfh.mranftl.com/fonts)
== Frequently Asked Questions ==
= How to use locally stored fonts directly? =
It is possible to avoid using Heroku and directly use locally hosted fonts.
Easy way:
* Let the plugin download the fonts
* Click the button in the plugin list overview ;)
Custom way:
* Create a folder "embed-google-fonts" in your "wp-content" folder
* For every font create a subfolder, i.e. "embed-google-fonts/open-sans/"
* Create a file "embed-google-fonts/open-sans/_font.css"
* Edit your "_font.css" to include rules for loading your local font
= Does this work with every theme and plugin? =
No, themes and plugins must use wp_enqueue_style to load Google Fonts.
Just try it, if it works, than you are fine.
= Does it work with caching plugins? =
Generally yes. You may exclude some files, if there are problems.
= Does it work with WP Rocket? =
Yes, it is working with WP Rocket.
= Does it work with WP Fastest Cache? =
If you are using [WP Fastest Cache](https://de.wordpress.org/plugins/wp-fastest-cache/), you should create an exclude CSS rule for "_font.css"
= Does it work with Divi? =
You have to disable
* **Improve Google Fonts Loading** and
* **Defer jQuery And jQuery Migrate**
in
* **Divi → Theme Options → General → Performance**
== Upgrade Notice ==
Nothing special
== Screenshots ==
There is no UI or something like this. So no screenshots needed.
== Changelog ==
= 3.1.1 =
* Improved security: Added a nonce and capability (manage_options) check
* Requires PHP 8.0+ now
= 3.1.0 =
* Fixed URL to new download server (Thanks brauni85 via Github)
* Fixed typo in key for locking (Thanks Thomas)
= 3.0.2 =
* Allow installation with PHP 7.3, because of high demand (Please note: It is highly recommended to upgrade to newer PHP)
* Fixed typo (Thanks Jenny)
= 3.0.1 =
* Reverted renaming of _font.css (again)
= 3.0.0 =
* Fonts may be stored locally now and will be loaded from there. This may avoid poor performance, when the remote server isn't available
* See FAQ for more information
* Removed direct Avada support
* Renamed "_font.css" to "font.css"
* Added korean subset (Thanks @phl23)
* Code refactoring
= 2.3.1 =
* Avoid warning, when removing not existing file
= 2.3.0 =
* Added missing Oriya subset (#6)
* Improved stability
= 2.2.4 =
* Avoid loading icons from Google Fonts (shows a PHP warning)
* Remove support for Memorable theme
= 2.2.3 =
* Don't show errors in frontend, when downloading a font didn't worked.
* Removed version constant, as it isn't used (EMBED_GOOGLE_FONTS_VERSION)
= 2.2.2 =
* Removed unnecessary error log
= 2.2.1 =
* Reverted file name of font.css to _font.css (for simpler WP Fastest Cache exclusion)
= 2.2.0 =
* Minor improvements
* Downloaded fonts will be cleared every 30 days automatically
* Downloaded fonts will be cleared, when "entire cache" is cleared in WP Rocket
* Downloaded fonts will be cleared, when cache is cleared in WP Fastest Cache
= 2.1.0 =
* Improved hoster compatible (used WordPress unzip_file)
= 2.0.6 =
* Fixed bug in family detection
= 2.0.5 =
* Prepared for first public release
= 2.0.4 =
* Fixed missing devanagari subset
= 2.0.3 =
* Fixed missing hebrew subset
= 2.0.2 =
* Fixed download url
= 2.0.1 =
* Uses standard cache folder for the fonts.
= 2.0 =
* Fonts are loaded and cached locally on the fly now. (from https://google-webfonts-helper.herokuapp.com/fonts)
= 1.3.3 =
* Added Work Sans, Karla, Alef, Permanent Marker, Amatic SC, Libre Baskerville, Roboto
= 1.3.2 =
* Improved theme compatibility (Elmastudio)
= 1.3.1 =
* Added Source Sans Pro and Anton
= 1.3.0 =
* Register fonts when needed and not all at the beginning (should improve performance)
* Added Domine
= 1.2.6 =
* Added Vollkorn, Montserrat and Forum
= 1.2.5 =
* Added Muli and Maven Pro
= 1.2.4 =
* Added Poppins and Questrial
= 1.2.3 =
* Improved Avada support
* Added Oswald and Indie Flower
= 1.2.2 =
* Improved filesystem access
= 1.2.1 =
* Added PT Sans
= 1.2 =
* Use filesystem for detecting embedded fonts
= 1.1.6 =
* Added Nunito and Raleway
= 1.1.5 =
* Added some fonts
= 1.1.4 =
* Hopefully finally fixed URL problems
= 1.1.3 =
* Improved url loading
= 1.1.2 =
* Reverted renaming
= 1.1.1 =
* Renamed _font.css to font.css
= 1.1.0 =
* Generic replacement of enqueued fonts
= 1.0.0 =
* Initial release