Fix WebAssembly demo font loading
This commit is contained in:
parent
ad9d14bdab
commit
124718d5a0
|
@ -8,6 +8,10 @@ the web browser.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
**Notice:** [github.com/kirsle/render](https://github.com/kirsle/render) is a
|
||||||
|
mirror to the upstream repository at [git.kirsle.net/go/render](https://git.kirsle.net/go/render).
|
||||||
|
Issues and pull requests will be accepted at GitHub.
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
```go
|
```go
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "DejaVuSans";
|
font-family: "DejaVuSans";
|
||||||
src: url("fonts/DejaVuSans.ttf") format("truetype");
|
src: url("DejaVuSans.ttf") format("truetype");
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user