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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@docx-editor.dev/fonts-cjk

v2.27.0

Published

Noto Sans CJK JP fallback font for Chinese, Japanese, and Korean text in @docx-editor.dev/docx-to-pdf.

Readme

@docx-editor.dev/fonts-cjk

This package supplies Noto Sans CJK JP for Chinese, Japanese, and Korean text. The @docx-editor.dev/docx-to-pdf package uses it as an optional fallback. The font file is about 16 MB, so it ships separately.

Install

Use Node.js ^20.16.0 || >=22.3.0. Install the package with the PDF converter and its required engine peer:

npm install @docx-editor.dev/docx-to-pdf @docx-editor.dev/core @docx-editor.dev/fonts-cjk

The converter declares @docx-editor.dev/fonts-cjk as an optional peer dependency. Use versions that satisfy the converter's peer dependency ranges. PDF export finds the package without configuration and reads its font from disk. It makes no network request for the font.

Font selection

PDF export uses this font when earlier sources lack the requested CJK family or characters. Your fonts, enabled system fonts, packaged substitutes, and fallbackFonts sources take priority. This font resolves before document-embedded fonts and lastResortFonts. For the complete order, see Configure PDF fonts.

The default glyph fallback list includes this font. If you supply glyphFallbacks, your list replaces the defaults. For this fallback, add an entry with family: NOTO_SANS_CJK_JP_FAMILY, weight: 400, and style: 'normal'.

You can omit this package when installed or supplied fonts cover your CJK text. Installed fonts such as SimSun, Batang, and MS Gothic take priority when useSystemFonts is true. If no font covers a CJK character, export reports a missing-glyph diagnostic. When this package is absent, the diagnostic names it. Strict export fails for missing glyphs.

Deploy the package

Add the package to your production dependencies. Keep it external to your server bundle so Node.js can resolve it at runtime. Retain its dist/ and assets/ directories in their package locations. Include its license files when distributing the package.

An installed package with missing or unreadable font assets reports font-origin-failed. Inspect result.fontResolution.originFailures to find the cause. Setting fontPolicy: 'strict' rejects these source failures.

For deployment examples, see Integrate PDF conversion.

Use the font directly

The package has two public exports:

| Export | Type | Value | | --- | --- | --- | | NOTO_SANS_CJK_JP_FAMILY | String literal | 'Noto Sans CJK JP' | | NOTO_SANS_CJK_JP_URL | URL | A file: URL for assets/NotoSansCJKjp-Regular.otf. |

Use the exported URL to read the font without constructing a package path:

import { readFile } from 'node:fs/promises';
import {
  NOTO_SANS_CJK_JP_FAMILY,
  NOTO_SANS_CJK_JP_URL,
} from '@docx-editor.dev/fonts-cjk';

const bytes = await readFile(NOTO_SANS_CJK_JP_URL);
console.log(NOTO_SANS_CJK_JP_FAMILY, bytes.byteLength);

The package runs on Node.js. It does not bundle the font into JavaScript or install a browser font.

Coverage and limits

  • The package includes one OpenType font with CFF outlines: Noto Sans CJK JP Regular.
  • Its weight is 400, and its style is 'normal'.
  • It supplies the Japanese regional face, without separate Chinese or Korean regional faces.
  • PDF export can synthesize bold and italic from this regular face.
  • Substituting this font can change glyph forms, line breaks, and page counts.
  • Characters outside the font's coverage still require another font.

Supply your own font through the converter's fonts option when you need a specific regional face or designed style.

Licenses

The package code uses the Apache License 2.0. For more information, see LICENSE. The PDF converter uses the separate EigenPal Pro License.

The font uses the SIL Open Font License, Version 1.1. The license text is in licenses/NotoSansCJK-OFL.txt.

  • Font: Noto Sans CJK JP Regular, version 2.004.
  • Copyright: © 2014-2021 Adobe (http://www.adobe.com/).
  • Trademark: Noto is a trademark of Google Inc.
  • Source: notofonts/noto-cjk.

The font file is the unmodified upstream binary. assets/sources.json records its source URL and SHA-256 hash. PDF export embeds only the glyphs that the document uses.