npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

nodettfpatch

v1.0.2

Published

TTFPATCH - node.js porting v1.0 - (C) by Wolfram Esser [[email protected]] 2001-02-23

Downloads

1

Readme

nodettfpatch

"Brutal" TTFPATCH - node.js porting v1.0 - (C) by Wolfram Esser [[email protected]] 2001-02-23. This is only a "translation" in node.js of this useful project http://www.derwok.de/downloads/ttfpatch/ and related fork https://github.com/rmuch/ttfpatch

Getting Started

Install the module with:

npm install -g nodettfpatch

How to use

  • filePath - TTF font path
  • wantedFontType - values:
    • 0: embedding for permanent installation
    • 1: reserved - do not use!
    • 2: embedding restricted (not allowed!)
    • 4: embedding for preview & printing allowed
    • 8: embedding for editing allowed Hint: fsType values can be added. So a fsType value of '12' (which is 4 + 8) means set 'embedding for preview&printing allowed' and set 'embedding for editing allowed'.

Using from CLI

ttfpatch filePath wantedFontType

Using in script

var ttfpatch = require('nodettfpatch');
ttfpatch();	//for module help
ttfpatch(filePath);	//for font file check filetype
ttfpatch(filePath,wantedFontType); //for modify font file type

TTFPatch Patches and Builds

Introduction

Ever wanted to embed a freely licensed font into your web page, for example as a local mirror of a Google Web Font, but you were presented with an error message like @font-face failed OpenType embedding permission check. Permission must be Installable. from Internet Explorer?

Do you have the right to use a font, but due to technical error, the font has been built with the wrong permission flag?

Are you a font author who wants to change the permission flag on their font?

This tool is here to help.

About

TTFPatch was created by Wolfram Eßer, for modifying the font embedding licensing flag flag of TTF fonts.

This project is based on TTFPatch, updated to build with Visual Studio 2013 and to allow modification of permission flags of fonts conforming to OpenType rev 1.4 and 1.6 specifications.

Disclaimer

Please be mindful of whether you are within your rights to make modifications to the font file. This tool is intended to be used by font authors and other permitted individuals who wish to set and change permission flags on their fonts.

Be aware that this application directly modifies the font file and may destructively alter the font. Always keep a backup of the original font file.

Further disclaimer terms apply to this product. For more information, see the license file.

License

Licensing information is contained in LICENSE.md. To read the original licensing terms for this project, please see docs/ttfpatch-1.0-readme.txt.

Links