Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@brajja/textdraw

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brajja/textdraw - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

fonts/FuturaBkBook.ttf

7

index.js

@@ -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 @@

2

package.json
{
"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',

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc