@luzixu/oppo-sans
v0.1.2
Published
Self-host OPPO Sans 4.0 variable font with Unicode-range WOFF2 subsets.
Maintainers
Readme
@luzixu/oppo-sans
Self-host OPPO Sans 4.0 with a variable weight axis and Unicode-range WOFF2 subsets.
npm install @luzixu/oppo-sansImport one of these equivalent CSS entry points in your application:
import "@luzixu/oppo-sans";
// Or: import "@luzixu/oppo-sans/wght";
// Or: import "@luzixu/oppo-sans/wght.css";body {
font-family: "OPPO Sans 4.0", sans-serif;
font-weight: 400;
}Font data
- Weight axis: 100–700, native default 400; normal style.
- 148 local WOFF2 files, loaded by character range.
- Font version: 4.0 (font version 1.700).
- 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 100–700 is supported, not just these instances.
| Native instance | font-weight / wght |
| --- | --- |
| Light | 300 |
| Regular | 400 |
| Medium | 500 |
| SemiBold | 600 |
| Bold | 700 |
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 Guangdong OPPO Mobile Telecommunications Corp., 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.
