@brajja/textdraw
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -9,3 +9,5 @@ const opentype = require('opentype.js') | ||
if (!fonts[name]) { | ||
fonts[name] = opentype.loadSync(__dirname + '/fonts/' + name + '.otf') | ||
//Quick fix for cyrillic chars | ||
fonts[name] = opentype.loadSync(__dirname + '/fonts/' + name + '.ttf') | ||
//fonts[name] = opentype.loadSync(__dirname + '/fonts/' + name + '.otf') | ||
} | ||
@@ -17,2 +19,5 @@ return fonts[name] | ||
//Quick fix for cyrillic chars | ||
fontName = 'FuturaBkBook' | ||
options = options || {} | ||
@@ -19,0 +24,0 @@ |
{ | ||
"name": "@brajja/textdraw", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "engines": { |
const fs = require('fs') | ||
const draw = require('..') | ||
draw('Goodbye', 'futura', 300, { | ||
let text = 'Большево' | ||
draw(text.toUpperCase(), 'sheldon', 300, { | ||
background: 'white', | ||
@@ -6,0 +8,0 @@ color: 'black', |
626454
12
59