That Terminal
A terminal emulator designed for video making purposes.
read_fonts.cc File Reference

Loads the list of available fonts and the list of characters in each. Used by FontPlan. More...

#include <cstdio>
#include <future>
#include <charconv>
#include <fstream>
#include <sstream>
#include <regex>
#include "read_fonts.hh"
#include "read_font.hh"
#include "endian.hh"
#include "share.hh"
Include dependency graph for read_fonts.cc:

Macros

#define r(str)   rmatch<__LINE__>(str##sv, mat, line)
 

Functions

void ReadFonts (std::ostream &out)
 
FontsInfo ParseFontsList (std::istream &f)
 
FontsInfo ReadFontsList ()
 

Detailed Description

Loads the list of available fonts and the list of characters in each. Used by FontPlan.

Function Documentation

◆ ReadFontsList()

FontsInfo ReadFontsList ( )

Reads the list of fonts in the system. This information is cached in fonts-list.dat (

See also
FindCacheFile). The function reads all files in share/fonts/files and collects information on them.
Returns
Font information. The information maps the following key: {filename, width, height} into following values: {guessed encoding, bitset of supported characters}.