blob: e39fb72bebfd4b8b85a7f0b6cc27bf53d28eeff4 [file] [log] [blame]
#ifndef _RIVE_FONT_ASSET_HPP_
#define _RIVE_FONT_ASSET_HPP_
#include "rive/generated/assets/font_asset_base.hpp"
#include "rive/text_engine.hpp"
#include "rive/refcnt.hpp"
namespace rive
{
class FontAsset : public FontAssetBase
{
public:
bool decode(Span<const uint8_t>, Factory*) override;
std::string fileExtension() const override;
const rcp<Font> font() const { return m_font; }
void font(rcp<Font> font);
private:
rcp<Font> m_font;
};
} // namespace rive
#endif