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

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

#include <map>
#include <string>
#include <vector>
Include dependency graph for read_fonts.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

using FontsInfo = std::map< std::pair< std::string, std::pair< unsigned, unsigned > >, std::pair< std::string, std::vector< bool >> >
 

Functions

FontsInfo ReadFontsList ()
 

Detailed Description

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

Typedef Documentation

◆ FontsInfo

using FontsInfo = std::map<std::pair<std::string, std::pair<unsigned,unsigned> >, std::pair<std::string, std::vector<bool>> >

Information returned by ReadFontsList().

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}.