diff options
| author | kx <kx@radix-linux.su> | 2026-10-17 16:39:23 +0300 |
|---|---|---|
| committer | kx <kx@radix-linux.su> | 2026-10-17 16:39:23 +0300 |
| commit | ec1891d58b9514b621725620453cec0e31e18389 (patch) | |
| tree | 6721f92c0afae3d933343b4a573ac8e5389827c6 /examples/css-file/README | |
| parent | 73d23259a690cd29c0ac74a4de963e23ecfebfac (diff) | |
| download | svgc-trunk.tar.xz | |
Diffstat (limited to 'examples/css-file/README')
| -rw-r--r-- | examples/css-file/README | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/css-file/README b/examples/css-file/README new file mode 100644 index 0000000..93c43e5 --- /dev/null +++ b/examples/css-file/README @@ -0,0 +1,18 @@ +CSS-FILE EXAMPLE +================ + +Run `make` using the installed SVGC and open `view.html`. +The program includes `fonts.css` in the generated example.svg <defs> +section. + +The CSS text is embedded in example.svg, but the font files are *not* +embedded. Place a legitimately redistributable `Roboto-Regular.woff2` +file in the `fonts/` subdirectory next to example.svg, or use a locally +installed Roboto font. This package intentionally does not distribute +font binaries. + +Relative url(...) paths in the embedded CSS are resolved against +example.svg, not against the original fonts.css or view.html. Some +browsers enforce security restrictions on local file:// font loading. +Serving the example from a local HTTP server may be needed for reliable +font rendering. |
