That Terminal
A terminal emulator designed for video making purposes.
font_planner.hh 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 <atomic>
#include <memory>
#include <vector>
#include <mutex>
#include <unordered_set>
#include <condition_variable>
#include "read_font.hh"
Include dependency graph for font_planner.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FontPlan
 
struct  FontPlan::Glyph
 

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.


Class Documentation

◆ FontPlan::Glyph

struct FontPlan::Glyph

Bitmap for pixels on single scanline

Class Members
unsigned long bitmap bitmap: maximum 64 pixels.
bool bold True if the font is "bold" style.

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.