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

nototools-pdf-fonts

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nototools-pdf-fonts - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "nototools-pdf-fonts",
"version": "1.0.0",
"version": "1.0.1",
"description": "customization for noto tools to merge non CJK noto fonts with latin character and prepare fonts files to be used by a pdf generator such as pdfMake",

@@ -5,0 +5,0 @@ "main": "gulpfile.js",

@@ -11,3 +11,5 @@ Fork of [nototools](https://github.com/googlefonts/nototools)

## Instructions
Clone repository or install or `npm install nototools-pdf-fonts`
Clone repository or install or
npm install --save-dev nototools-pdf-fonts

@@ -22,12 +24,23 @@ On Mac OS X, install dependencies with [homebrew](https://brew.sh)

Then install nototools. Since nototools changes frequently, installing using 'editable' mode is recommended:
Installing using 'editable' mode is recommended:
pip install -e .
Download all fonts [noto fonts](https://www.google.com/get/noto/) to use as source for script (alternatively - modify dicts in `merge_fonts.py` and only include font files as needed).
Download fonts from [noto fonts](https://www.google.com/get/noto/)
See `merge_fonts.py` for more instructions on usage or use already merged fonts from `merged_fonts` directory.
Merge fonts using `merge_fonts.py` - modify as needed(add downloaded font files to merge or skip this step to use already merged fonts provided in merged_fonts directory for the next step):
python3 dir_to_merge_fonts.py -d dir_to_notofonts_to_merge
*note that otf files from CJK (Chinese, Japanese and Korean) cannot be merged and instead should be built either from the default provided fonts in `merged_fonts` directory or [here](https://github.com/m13253/kaigen-fonts) (converted noto sans cjk `.otf` files).
*note that `.otf` files from CJK (Chinese, Japanese and Korean) cannot be merged and instead should be built directly to base64 using the CJK font files found in the `merged_fonts` directory which has been conveniently provided by [Kaigen Fonts](https://github.com/m13253/kaigen-fonts). Additional font weights can be supplied to this tool from there.*
To convert merged fonts to base64, make sure all merged font files are in `merged_fonts` directory then install node modules and run `gulp buildFonts` and find built files of base64 data in `build` directory.
Convert merged fonts to base64 using this tool:
- As a cloned repo
gulp buildFonts
- As a npm module
gulp --cwd './node_modules/nototools-pdf-fonts
Find built files of base64 in `build` directory.
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