Noto Sans Japanese font for noto-pdf-ts
npm install @noto-pdf-ts/fonts-jpNoto Sans Japanese Variable Font for use with @noto-pdf-ts/core.
``bash`
npm install @noto-pdf-ts/fonts-jp@alpha
`typescript
import { init } from '@noto-pdf-ts/core'
import loadFontJp from '@noto-pdf-ts/fonts-jp'
// Initialize with Japanese font
await init({
fonts: [await loadFontJp()],
})
`
`typescript
import { getFontPath, getFontData, FONT_NAME } from '@noto-pdf-ts/fonts-jp'
// Get font file path
const fontPath = getFontPath()
// Get font data as Uint8Array
const fontData = await getFontData()
// Get font filename
console.log(FONT_NAME) // 'NotoSansJP-VF.ttf'
``
- Font Name: Noto Sans Japanese Variable Font
- File: NotoSansJP-VF.ttf (~9MB)
- Coverage: Hiragana, Katakana, Kanji, Latin
- Weight Range: Variable font supporting multiple weights
- License: SIL Open Font License 1.1
This package uses a Variable Font (VF) which allows for dynamic weight adjustment. The font file is larger than a single-weight font but provides greater flexibility in typography.
The font is licensed under the SIL Open Font License 1.1.
The package code is licensed under the MIT License.
- @noto-pdf-ts/core - Core PDF rendering library
- @noto-pdf-ts/fonts-kr - Korean fonts
- @noto-pdf-ts/fonts-sc - Simplified Chinese fonts
- @noto-pdf-ts/fonts-tc - Traditional Chinese fonts
- @noto-pdf-ts/fonts-cjk - All CJK fonts
For issues and questions, please visit the main repository.