Fix native text rendering under node-canvas.

This commit is contained in:
kangax 2012-08-16 18:08:13 +02:00
parent ef8e7130f8
commit 90d7f7acf3
6 changed files with 7 additions and 7 deletions

View file

@ -1,6 +1,6 @@
/*! Fabric.js Copyright 2008-2012, Printio (Juriy Zaytsev, Maxim Chernyak) */
var fabric = fabric || { version: "0.8.52" };
var fabric = fabric || { version: "0.8.53" };
if (typeof exports != 'undefined') {
exports.fabric = fabric;

4
dist/all.js vendored
View file

@ -1,7 +1,7 @@
/* build: `node build.js modules=ALL` */
/*! Fabric.js Copyright 2008-2012, Printio (Juriy Zaytsev, Maxim Chernyak) */
var fabric = fabric || { version: "0.8.52" };
var fabric = fabric || { version: "0.8.53" };
if (typeof exports != 'undefined') {
exports.fabric = fabric;
@ -13046,7 +13046,7 @@ fabric.Image.filters.Tint.fromObject = function(object) {
this.fontStyle,
this.fontWeight,
this.fontSize + 'px',
this.fontFamily
(fabric.isLikelyNode ? ('"' + this.fontFamily + '"') : this.fontFamily)
].join(' ');
},

4
dist/all.min.js vendored

File diff suppressed because one or more lines are too long

BIN
dist/all.min.js.gz vendored

Binary file not shown.

View file

@ -1,7 +1,7 @@
{
"name": "fabric",
"description": "Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.",
"version": "0.8.52",
"version": "0.8.53",
"author": "Juriy Zaytsev <kangax@gmail.com>",
"keywords": ["canvas", "graphic", "graphics", "SVG", "node-canvas", "parser", "HTML5", "object model"],
"repository": "git://github.com/kangax/fabric.js",

View file

@ -478,7 +478,7 @@
this.fontStyle,
this.fontWeight,
this.fontSize + 'px',
this.fontFamily
(fabric.isLikelyNode ? ('"' + this.fontFamily + '"') : this.fontFamily)
].join(' ');
},