MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / font

Method font

source/base/StarAssets.cpp:587–592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

585}
586
587FontConstPtr Assets::font(String const& path) const {
588 auto components = AssetPath::split(path);
589 validatePath(components, false, false);
590
591 return as<FontData>(getAsset(AssetId{AssetType::Font, std::move(components)}))->font;
592}
593
594ByteArrayConstPtr Assets::bytes(String const& path) const {
595 auto components = AssetPath::split(path);

Callers 2

reloadFontsMethod · 0.80
loadFontMethod · 0.80

Calls 1

validatePathFunction · 0.85

Tested by

no test coverage detected