Browse Source

Fix WebAssembly demo font loading

master
Noah Petherbridge 1 year ago
parent
commit
124718d5a0
2 changed files with 5 additions and 1 deletions
  1. +4
    -0
      README.md
  2. +1
    -1
      examples/hello-wasm/index.html

+ 4
- 0
README.md View File

@@ -8,6 +8,10 @@ the web browser.

![Screenshot](examples/hello-world/screenshot.png)

**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

```go


+ 1
- 1
examples/hello-wasm/index.html View File

@@ -15,7 +15,7 @@

@font-face {
font-family: "DejaVuSans";
src: url("fonts/DejaVuSans.ttf") format("truetype");
src: url("DejaVuSans.ttf") format("truetype");
}
</style>
</head>


Loading…
Cancel
Save