Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added horizAdvX attribute for glyphs

  • Loading branch information...
commit b7c921b053cb3cc6b39ef28d6ef0297e831b0228 1 parent 3a1db43
@fudini authored
Showing with 4 additions and 2 deletions.
  1. +3 −2 src/Savage.Parser.js
  2. +1 −0  src/shapes/Savage.glyph.js
View
5 src/Savage.Parser.js
@@ -55,11 +55,12 @@ Savage.Parser = {
"cy" : "y",
"r" : "radius",
"d" : "commands",
- "stroke-width": "strokeWidth"
+ "stroke-width": "strokeWidth",
+ "horiz-adv-x": "horizAdvX"
},
// allowed attributes names and their corresponding parse methods
attributeTypes: {
- "width,height,x,y": "float",
+ "width,height,x,y,horizAdvX": "float",
"rx,ry,radius,opacity,strokeWidth": "float",
"fill,stroke": "color",
"transform": "transform",
View
1  src/shapes/Savage.glyph.js
@@ -1,5 +1,6 @@
Savage.glyph = Savage.path.extend({
type: 'glyph',
+ horizAdvX: null, // if this is null - use the global value from the font tag
init: function(attributes) {
this._super(attributes);
}
Please sign in to comment.
Something went wrong with that request. Please try again.