4#ifndef INCLUDE_FIFECHAN_FONTLOADER_HPP
5#define INCLUDE_FIFECHAN_FONTLOADER_HPP
14#include "fifechan/font.hpp"
15#include "fifechan/graphics.hpp"
45 std::string
const & fontName, std::vector<std::filesystem::path>
const & searchPaths = {});
57 static std::shared_ptr<Font>
loadFont(
59 std::string
const & fontName,
61 std::vector<std::filesystem::path>
const & searchPaths = {});
Abstract interface providing primitive drawing functions (lines, rectangles, etc.).
Helper class for searching and loading fonts.
static std::filesystem::path findFontFile(std::string const &fontName, std::vector< std::filesystem::path > const &searchPaths={})
Find a font file by name searching the provided paths.
static std::vector< std::filesystem::path > getDefaultSearchPaths()
Returns default search paths used when locating font files on the current platform.
static std::shared_ptr< Font > loadFont(Graphics &graphics, std::string const &fontName, int size, std::vector< std::filesystem::path > const &searchPaths={})
Load a Font object for the given font name and size using the provided Graphics implementation.