Skip to content

Commit cdde84d

Browse files
authored
Merge pull request #12 from brainstormforce/gutenberg-support
Version 1.0.7
2 parents adc518f + 594a4cf commit cdde84d

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
**Donate link:** https://wpastra.com/
44
**Tags:** custom typekit fonts, theme custom fonts, unlimited typekit custom fonts
55
**Requires at least:** 4.4
6-
**Tested up to:** 4.9.7
7-
**Stable tag:** 1.0.6
6+
**Tested up to:** 5.0
7+
**Stable tag:** 1.0.7
88
**License:** GPLv2 or later
99
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -49,6 +49,9 @@ If you're not using any of the supported plugins and theme, you can write the cu
4949

5050
## Changelog ##
5151

52+
v1.0.7
53+
* Improvement: Enqueue typekit fonts in the block editor.
54+
5255
v1.0.6
5356
* Fixed: Update font name to correct font family to be rendered correctly for all the fonts.
5457
* Fixed: Typekit fonts not rendered ccorrectly in Beaver Builder and Elementor settings.

classes/class-custom-typekit-fonts-render.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Custom_Typekit_Fonts_Render {
4949
*/
5050
public static function get_instance() {
5151
if ( ! isset( self::$_instance ) ) {
52-
self::$_instance = new self;
52+
self::$_instance = new self();
5353
}
5454

5555
return self::$_instance;
@@ -73,6 +73,8 @@ public function __construct() {
7373
// Elementor page builder.
7474
add_filter( 'elementor/fonts/groups', array( $this, 'elementor_group' ) );
7575
add_filter( 'elementor/fonts/additional_fonts', array( $this, 'add_elementor_fonts' ) );
76+
77+
add_action( 'enqueue_block_editor_assets', array( $this, 'typekit_embed_head' ) );
7678
}
7779

7880
/**

custom-typekit-fonts.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Author: Brainstorm Force
77
* Author URI: http://www.brainstormforce.com
88
* Text Domain: custom-typekit-fonts
9-
* Version: 1.0.6
9+
* Version: 1.0.7
1010
*
1111
* @package Typekit_Custom_Fonts
1212
*/
@@ -25,7 +25,7 @@
2525
define( 'CUSTOM_TYPEKIT_FONTS_BASE', plugin_basename( CUSTOM_TYPEKIT_FONTS_FILE ) );
2626
define( 'CUSTOM_TYPEKIT_FONTS_DIR', plugin_dir_path( CUSTOM_TYPEKIT_FONTS_FILE ) );
2727
define( 'CUSTOM_TYPEKIT_FONTS_URI', plugins_url( '/', CUSTOM_TYPEKIT_FONTS_FILE ) );
28-
define( 'CUSTOM_TYPEKIT_FONTS_VER', '1.0.6' );
28+
define( 'CUSTOM_TYPEKIT_FONTS_VER', '1.0.7' );
2929
/**
3030
* BSF Custom Fonts
3131
*/

readme.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Contributors: brainstormforce, rushijagani
33
Donate link: https://wpastra.com/
44
Tags: custom typekit fonts, theme custom fonts, unlimited typekit custom fonts
55
Requires at least: 4.4
6-
Tested up to: 4.9.7
7-
Stable tag: 1.0.6
6+
Tested up to: 5.0
7+
Stable tag: 1.0.7
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -49,6 +49,9 @@ If you're not using any of the supported plugins and theme, you can write the cu
4949

5050
== Changelog ==
5151

52+
v1.0.7
53+
* Improvement: Enqueue typekit fonts in the block editor.
54+
5255
v1.0.6
5356
* Fixed: Update font name to correct font family to be rendered correctly for all the fonts.
5457
* Fixed: Typekit fonts not rendered ccorrectly in Beaver Builder and Elementor settings.

0 commit comments

Comments
 (0)