PoDoFo 0.9.20
PoDoFo::PdfFontTrueTypeSubset Class Referencefinal

#include <PdfFontTrueTypeSubset.h>

Static Public Member Functions

static void BuildFont (std::string &output, const PdfFontMetrics &metrics, const GIDList &gidList)
 

Detailed Description

This class is able to build a new TTF font with only certain glyphs from an existing font.

Member Function Documentation

◆ BuildFont()

void PdfFontTrueTypeSubset::BuildFont ( std::string & output,
const PdfFontMetrics & metrics,
const GIDList & gidList )
static

Actually generate the subsetted font Create a new PdfFontTrueTypeSubset from an existing TTF font file retrived from a font metrics

Parameters
outputwrite the font to this buffer
metricsfont metrics object for this font
gidLista list of gids to load

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