diff --git a/examples/configurations/sample.js b/examples/configurations/sample.js index 4754809..039654a 100644 --- a/examples/configurations/sample.js +++ b/examples/configurations/sample.js @@ -55,6 +55,7 @@ var configuration = { useAsFilename: true, text: 'CardKit is a powerful image creation\nlibrary for browsers and servers', fontFamily: 'Helvetica', + fontWeight: 'bold', editable: { text: { options: [ diff --git a/package.json b/package.json index adfa756..ed275b1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cardkit", - "version": "2.0.4", + "version": "2.0.5", "description": "A simple, powerful and fully configurable image editor for web browsers and servers. Optional UI included.", "main": "cardkit.js", "homepage": "https://times.github.io/cardkit", @@ -67,7 +67,7 @@ "react": "^15.3.2", "react-color": "^2.3.2", "react-dom": "^15.3.2", - "rvg.js": "^1.0.5", + "rvg.js": "^1.1.0", "svg2png": "4.0.0" } } diff --git a/src/renderers/shared/Card.js b/src/renderers/shared/Card.js index 19bcb69..2b4b4c2 100644 --- a/src/renderers/shared/Card.js +++ b/src/renderers/shared/Card.js @@ -153,6 +153,7 @@ class Card extends React.Component { y={this.calculateYPosition(layers, layerData)} fontFamily={layerData.fontFamily} fontSize={layerData.fontSize} + fontWeight={layerData.fontWeight} lineHeight={layerData.lineHeight} textAnchor={layerData.textAnchor} fill={layerData.fill}