cjk

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2026 License: BSD-3-Clause Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cjk bundles a Noto Sans CJK fallback font and registers it as a global font fallback, so Chinese/Japanese/Korean text renders without each app having to supply its own font — on every platform, including WebAssembly, where system fonts cannot be scanned.

Import it for its side effect to enable CJK everywhere:

import _ "github.com/belluikit/bellui/theme/cjk"

or call Register explicitly. The bundled face is a ~6.5 MB subset of Noto Sans CJK SC covering common Han (GB2312 / Shift-JIS / EUC-KR), Hiragana, Katakana, common Hangul and CJK punctuation; it is only linked into your binary when this package is imported. For glyphs outside the subset, register your own fuller font with bellui.RegisterFontFallback.

Noto Sans CJK is licensed under the SIL Open Font License 1.1.

Index

Constants

This section is empty.

Variables

View Source
var Font = &bellui.StaticResource{
	StaticName:    "NotoSansCJKsc-bellui.otf",
	StaticContent: notoSansCJK,
}

Font is the bundled Noto Sans CJK (Simplified Chinese) subset.

Functions

func Register

func Register()

Register adds the bundled CJK font to the global font fallback chain. It is idempotent and runs automatically when the package is imported.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL