Skip to content

Commit

Permalink
Fix createSVGFontFacesMarkup (#2935)
Browse files Browse the repository at this point in the history
* Update parser.js
  • Loading branch information
asturur committed May 3, 2016
1 parent 3c9fb41 commit c491140
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand All @@ -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;
}
Expand Down

0 comments on commit c491140

Please sign in to comment.