blob: 29fad8d70fd3b21cb5be1beee428be2035a9dde9 [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(SimpleArray<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