Skip to content

Commit bb8fd4b

Browse files
committed
Rearrange
1 parent ba269d6 commit bb8fd4b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/engine/tw-font-manager.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,6 @@ class FontManager extends EventEmitter {
6969
return /^[-\w ]+$/.test(family);
7070
}
7171

72-
/**
73-
* @deprecated only exists for extension compatibility, use isValidSystemFont or isValidCustomFont instead
74-
*/
75-
isValidFamily (family) {
76-
return this.isValidSystemFont(family) && this.isValidCustomFont(family);
77-
}
78-
7972
/**
8073
* @param {string} family Untrusted font name input
8174
* @returns {boolean} true if the family is valid for a custom font
@@ -84,6 +77,13 @@ class FontManager extends EventEmitter {
8477
return /^[-\w ]+$/.test(family) && !this.restrictedFonts.has(family.toLowerCase());
8578
}
8679

80+
/**
81+
* @deprecated only exists for extension compatibility, use isValidSystemFont or isValidCustomFont instead
82+
*/
83+
isValidFamily (family) {
84+
return this.isValidSystemFont(family) && this.isValidCustomFont(family);
85+
}
86+
8787
/**
8888
* @param {string} family Untrusted font name input
8989
* @returns {string}

0 commit comments

Comments
 (0)