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

Defines an interface that converts unicode characters into pixels, through scanning available font files for a specified range in unicode at specified size. More...

#include <map>
#include <regex>
#include <fstream>
#include <cassert>
#include <thread>
#include <chrono>
#include <unordered_map>
#include <memory>
#include "make_similarities.hh"
#include "font_planner.hh"
#include "read_fonts.hh"
#include "endian.hh"
#include "share.hh"
Include dependency graph for font_planner.cc:

Functions

void FontPlannerTick ()
 

Detailed Description

Defines an interface that converts unicode characters into pixels, through scanning available font files for a specified range in unicode at specified size.

Function Documentation

◆ FontPlannerTick()

void FontPlannerTick ( )

A callback function that unloads fonts that have not been accessed for 60 seconds. This check is only done if 10 or more seconds has elapsed since last check.