#include "NOFont.h"
Public Member Functions | |
NOFont (NOPackage *pPackage, NCommon::UInt16 pID) | |
const NCommon::UTF8String | getFileName () |
const NCommon::UTF8String | getFontFamilyName () |
NCommon::UInt32 | isRestricted () |
void | writeToFile (const NCommon::UTF8String &destinationPath) |
bool | replaceWithFile (const NCommon::UTF8String &sourcePath) |
NiXPSObjects::NOFont::NOFont | ( | NOPackage * | pPackage, | |
NCommon::UInt16 | pID | |||
) |
constructor: create a font with a given ID in the package
const NCommon::UTF8String NiXPSObjects::NOFont::getFileName | ( | ) |
Returns the filename of the font.
const NCommon::UTF8String NiXPSObjects::NOFont::getFontFamilyName | ( | ) |
Returns the family name of the font.
NCommon::UInt32 NiXPSObjects::NOFont::isRestricted | ( | ) |
Returns wheter a font is restricted or not. A font is restricted when it's relationship in the XPS package indicates it as such.
void NiXPSObjects::NOFont::writeToFile | ( | const NCommon::UTF8String & | destinationPath | ) |
Saves font to a file
destinationPath | An UTF8String with the path to write the file to. The path is seperated by forward slashes ('/'). |
bool NiXPSObjects::NOFont::replaceWithFile | ( | const NCommon::UTF8String & | sourcePath | ) |
Replaces a font with the given file
sourcePath | An UTF8String with the path of the font file to add as a replacement. The path is seperated by forward slashes ('/'). |