stc
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
FntParser.hpp File Reference
#include "StdFix.hpp"
#include <any>
#include <filesystem>
#include <fstream>
#include <sstream>
#include <vector>
#include <map>

Go to the source code of this file.

Classes

struct  stc::FntParser::FntCharInfo
 
struct  stc::FntParser::FntInfo
 

Namespaces

namespace  stc
 
namespace  stc::FntParser
 

Functions

std::vector< float > stc::FntParser::generateUVCoords (int atlasWidth, int atlasHeight, const FntCharInfo &chr)
 
std::map< std::string, std::any > stc::FntParser::parseLine (const std::string &line)
 
FntInfo stc::FntParser::loadAndParseFnt (const std::string &fileName)
 

Detailed Description

Defines a parser for .fnt files. Note that .fnt here refers to a metadata format used alongside .png, and not the binary image format.

Deprecated:
This module is no longer maintained, as I have switched to allegro, which has built-in .ttf parsing. That and I cannot find where the .fnt files came from, so I doubt it's a proper format.