<commit_before>#pragma once

#include "Core/Core.h"
#include "Asset.h"

namespace Volt
{

class DataItem;

class FontAsset : public Asset {
public:
    FontAsset (int textureWidth, int textureHeight);
    ~FontAsset ();

    // TODO: What happens if you load same filename with two sizes?
    bool Load (const DataItem& item, float size);

    void Reload ();
    void Unload ();

    /** Gets the information for where to render the given character. x and y
     *  are the desired location for the texture, and are updated to be the new
     *  position after rendering the current quad with the data returned in the
     *  BBoxes. */
    void GetGlyphData (char c, float* x, float* y,
		       BBox* verts, BBox* texCoords) const;

    float GetTextWidth (const string &text);
    float GetTextHeight (const string &text);

    int glID () const { return m_texID; }

    virtual string assetKey () const {<commit_msg>Fixed now.<commit_after>#pragma once

#include "Core/Core.h"
#include "Asset.h"

namespace Volt
{

class DataItem;

class FontAsset : public Asset {
public:
    FontAsset (int textureWidth, int textureHeight);
    ~FontAsset ();

    bool Load (const DataItem& item, float size);

    void Reload ();
    void Unload ();

    /** Gets the information for where to render the given character. x and y
     *  are the desired location for the texture, and are updated to be the new
     *  position after rendering the current quad with the data returned in the
     *  BBoxes. */
    void GetGlyphData (char c, float* x, float* y,
		       BBox* verts, BBox* texCoords) const;

    float GetTextWidth (const string &text);
    float GetTextHeight (const string &text);

    int glID () const { return m_texID; }

    virtual string assetKey () const {
{'fraction_non_alphanumeric': 0.08752117447769622, 'fraction_numerical': 0.0, 'mean_word_length': 3.0735632183908046, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6164561', 'n_tokens_mistral': 526, 'n_tokens_neox': 507, 'n_words': 220}