Socket
Book a DemoInstallSign in
Socket

nodegui-plugin-font-icon

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodegui-plugin-font-icon

Use icon fonts inside QIcon with NodeGui

latest
npmnpm
Version
0.3.1
Version published
Weekly downloads
6
-25%
Maintainers
1
Weekly downloads
 
Created
Source

nodegui-plugin-font-icon

Use icon fonts inside QIcon with NodeGui.

TypeScript example:

//...
import { createFontIcon } from 'nodegui-plugin-font-icon';
//...

// Load in our custom icon font
const extraicons = path.join(__dirname, "../resources/extraicons.ttf");
QFontDatabase.addApplicationFont(extraicons);

//...

const button = new QPushButton();
const icon = createFontIcon(font, "\uEA09");  // Pocketknife icon
button.setIcon(icon);
button.setText('Font Icon');

//...

Install via NPM:

npm install nodegui-plugin-font-icon

For the API see src/index.ts

For a complete demo see src/demo.ts

Maintainer

Simon Edwards simon@simonzone.com

License

MIT

Release Process (for maintainers)

  • Make sure the version in package.json is correct.
  • Tag the version with git (format: v1.2.3).
  • Push the tag to origin.
  • Wait for GitHub Action to build and release to NPM.

FAQs

Package last updated on 28 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts