@docx-editor.dev/fonts-cjk
v2.37.0 · 2 published subpaths with full TypeScript signatures and JSDoc.
Subpaths
Package root
The face is about 16 MB, so it ships in its own package. When this package is installed next to @docx-editor.dev/docx-to-pdf, PDF export finds it without configuration.
Node.js only: the face is a file beside this module, not a bundled asset. For the editor in a browser, use cjkFonts() from @docx-editor.dev/fonts-cjk/browser.
Variables (4)
CJK_SUBSTITUTED_FAMILIESconstSource ↗
East Asian families the packaged face stands in for when the family itself is missing.
The face covers their text, not their metrics: substituting it can change glyph forms, line breaks, and page counts.
CJK_SUBSTITUTED_FAMILIES: readonly string[]LOCALIZED_CJK_FAMILIESconstSource ↗
Localized names that documents write for the families in [CJK_SUBSTITUTED_FAMILIES](CJK_SUBSTITUTED_FAMILIES), each mapped to its English name. A document saved in a Chinese, Japanese, or Korean locale names its East Asian font this way.
A Map, not an object: the key is file-derived, and a name such as constructor must not find a prototype member.
LOCALIZED_CJK_FAMILIES: ReadonlyMap<string, string>NOTO_SANS_CJK_JP_FAMILYconstSource ↗
Family name of the packaged face.
NOTO_SANS_CJK_JP_FAMILY = "Noto Sans CJK JP"NOTO_SANS_CJK_JP_URLconstSource ↗
file: URL of the packaged face, NotoSansCJKjp-Regular.otf: one weight (400), one style (normal), OpenType with CFF outlines.
NOTO_SANS_CJK_JP_URL: URL