MCPcopy Index your code
hub / github.com/EngoEngine/engo / FontResource

Struct FontResource

common/font_filetype.go:15–18  ·  view source on GitHub ↗

FontResource is a wrapper for `*truetype.Font` which is being passed by the the `engo.Files.Resource` method in the case of `.ttf` files.

Source from the content-addressed store, hash-verified

13// FontResource is a wrapper for `*truetype.Font` which is being passed by the the `engo.Files.Resource` method in the
14// case of `.ttf` files.
15type FontResource struct {
16 Font *truetype.Font
17 url string
18}
19
20// URL returns the file path for the FontResource.
21func (f FontResource) URL() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected