mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-01 10:34:42 +00:00
parent
3c9fb411c4
commit
c4911406ac
1 changed files with 4 additions and 4 deletions
|
|
@ -1031,7 +1031,7 @@
|
|||
*/
|
||||
createSVGFontFacesMarkup: function(objects) {
|
||||
var markup = '', fontList = { }, obj, fontFamily,
|
||||
style, row, rowIndex, char, charIndex,
|
||||
style, row, rowIndex, _char, charIndex,
|
||||
fontPaths = fabric.fontPaths;
|
||||
|
||||
for (var i = 0, len = objects.length; i < len; i++) {
|
||||
|
|
@ -1046,10 +1046,10 @@
|
|||
}
|
||||
style = obj.styles;
|
||||
for (rowIndex in style) {
|
||||
char = style[rowIndex];
|
||||
row = style[rowIndex];
|
||||
for (charIndex in row) {
|
||||
char = row[charIndex];
|
||||
fontFamily = char.fontFamily;
|
||||
_char = row[charIndex];
|
||||
fontFamily = _char.fontFamily;
|
||||
if (!fontList[fontFamily] && fontPaths[fontFamily]) {
|
||||
fontList[fontFamily] = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue