@luzixu/harmonyos-sans
v0.1.2
Published
Self-host HarmonyOS Sans variable font with Unicode-range WOFF2 subsets.
Maintainers
Readme
@luzixu/harmonyos-sans
Self-host HarmonyOS Sans with a variable weight axis and Unicode-range WOFF2 subsets.
npm install @luzixu/harmonyos-sansImport one of these equivalent CSS entry points in your application:
import "@luzixu/harmonyos-sans";
// Or: import "@luzixu/harmonyos-sans/wght";
// Or: import "@luzixu/harmonyos-sans/wght.css";body {
font-family: "HarmonyOS Sans", sans-serif;
font-weight: 400;
}Font data
- Weight axis: 40–900, native default 400; normal style.
- 150 local WOFF2 files, loaded by character range.
- Font version: 2.040.
- No runtime dependencies or install scripts; no external font service requests.
metadata.json,unicode.json,sources.json, andfiles/*are exported.
Native weight instances
The complete named weight instances from the source font's fvar table are listed below.
Names and coordinates are preserved; the package does not normalize the weight axis.
The axis is continuous: any weight within 40–900 is supported, not just these instances.
| Native instance | font-weight / wght |
| --- | --- |
| Thin | 100 |
| UltraLight | 173 |
| Light | 247 |
| Regular | 400 |
| Medium | 500 |
| SemiBold | 603 |
| Bold | 706 |
| Heavy | 772 |
| Black | 844 |
CSS normal means 400 and bold means 700, regardless of the font's native default
or instance names. Importing this package only registers @font-face rules; it does not
set the application's body weight or remap CSS keywords. Weights outside the supported
axis range are clamped to the nearest endpoint.
See the CSS font-weight specification.
Copyright and license
Copyright Huawei Device Co., Ltd.. Font rights remain with the original copyright holder. The original vendor license is included as LICENSE; it is not an MIT or SIL OFL font license. This is an independently maintained package, not an official vendor package.
Official font source. File hashes and original download details are recorded in sources.json.
