PoDoFo 0.9.6
|
#include <PdfTTFWriter.h>
Public Member Functions | |
PdfTTFWriter () | |
void | Read (PdfInputDevice *pDevice) |
void | Subset () |
void | Write (PdfOutputDevice *pDevice) |
An internal class which can parse a TrueType font file and write a subset of this TrueType font back to an output device.
This class is used internally to do font subsetting.
The usual way to use this class is:
PdfTTFWriter writer; writer.Read ( [an input device] ); // read the font from a device writer.Subset ( ); // do the subsetting writer.Write ( [an output device] ); // write the font back to a device
PoDoFo::NonPublic::PdfTTFWriter::PdfTTFWriter | ( | ) |
Create a PdfTTFWriter object. For testing purposes.
TODO: Remove
The TTF format.
void PoDoFo::NonPublic::PdfTTFWriter::Read | ( | PdfInputDevice * | pDevice | ) |
Fills the internal data structures using an existing TrueType font.
pDevice | the TTF is read from this device |
void PoDoFo::NonPublic::PdfTTFWriter::Subset | ( | ) |
Do the actual subsetting of the font data TODO
void PoDoFo::NonPublic::PdfTTFWriter::Write | ( | PdfOutputDevice * | pDevice | ) |
Write a TTF font from the current internal structures to an output device.
pDevice | write the font to this device |