Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGLSdfFontMaker Class Reference

Helper class for generation of Signed Distance Field (SDF) fonts for REve.

Definition at line 4 of file TGLSdfFontMaker.h.

Static Public Member Functions

static int MakeFont (const char *ttf_font, const char *output_prefix, bool verbose=false)
 Converts TTF font 'ttf_font' into a SDF font texture atlas (png format) and a compressed font metrics JSON file.
 

#include <TGLSdfFontMaker.h>

Member Function Documentation

◆ MakeFont()

int TGLSdfFontMaker::MakeFont ( const char *  ttf_font,
const char *  output_prefix,
bool  verbose = false 
)
static

Converts TTF font 'ttf_font' into a SDF font texture atlas (png format) and a compressed font metrics JSON file.

Both files are put into the directory given by 'output_prefix'.

Definition at line 94 of file TGLSdfFontMaker.cxx.


The documentation for this class was generated from the following files: