Mako 8.2.0 API
MakoCore SDK API Documentation
Loading...
Searching...
No Matches
IDOMFontSource data
Collaboration diagram for IDOMFontSource data:

Topics

 IDOMFontSourceStreamFilter data
 IDOMFontSourceFromStream initialization data
 IDOMFontSourceObfuscationConverter data
 IDOMFont data
 IDOMFontOpenType initialization data
 IDOMType3Font initialization data

Classes

class  IDOMFontSource::Data
class  IDOMFontSourceStreamFilter::Data
 Initialization data. More...
class  IDOMFontSourceFromStream::Data
 Initialization data. More...
class  IDOMFontSourceObfuscationConverter::Data
 Initialization data. More...
class  IDOMFont::Data
 Initialization data. More...
class  IDOMFontOpenType::Signature
class  IDOMFontOpenType::CCIDMap
 For TrueType-based CIDFonts, the mapping from CIDs to GlyphIds for non-identity orderings. More...
class  IDOMFontOpenType::Data
 Initialization data. More...
class  IDOMFontOpenTypeTT::Data
 Initialization data. More...
class  IDOMType3Font::Data
 Initialization data. More...
class  SignatureID
 Opentype table signatures. More...

Macros

#define IDOMFontSourceFromStreamClassID   0x6d2e3ca8, 0x821511dc, 0x83140800, 0x200c9a66
#define IDOMFontSourceObfuscationConverterClassID   0x51e24e4a, 0x831a11dc, 0x83140800, 0x200c9a66
#define IDOMFontClassID   0x4330123e, 0x7e6211dc, 0x83140800, 0x200c9a66
#define IFontOpenTypeTableAccessorClassID   0x06e3b890, 0xda2311dc, 0x95ff0800, 0x200c9a66
#define IFontTrueTypeGlyphIDEnumeratorClassID   0xa8c1c370, 0xdb1111dc, 0x95ff0800, 0x200c9a66
#define IFontTrueTypeGlyphAccessorClassID   0x114cab20, 0xda2311dc, 0x95ff0800, 0x200c9a66
#define IDOMFontOpenTypeClassID   0x287baf3f, 0x307e4aa0, 0xa66f981f, 0xd4ac090a
#define IDOMFontOpenTypeTTClassID   0x47fda935, 0xb25944b3, 0xbdc1061b, 0x7356cf50
#define IDOMType3FontClassID   0xb885316f, 0x7b114d80, 0x8fbe958c, 0xf1b34ab3

Enumerations

enum  IDOMFontSourceStreamFilter::eFontStreamFilterType { IDOMFontSourceStreamFilter::eFontStreamFilterTypeNone , IDOMFontSourceStreamFilter::eFontStreamFilterTypeObfuscation }
 An enumeration type used to identify the source type of a font. More...
enum  IDOMFontSourceObfuscationConverter::eOperation { IDOMFontSourceObfuscationConverter::eObfuscate , IDOMFontSourceObfuscationConverter::eDeobfuscate }
 type used to uniquely identify the conversion direction More...

Functions

 IDOMFontSource::Data::Data ()
static const CClassIDIDOMFontSource::classID ()
 Retrieves the class id of IDOMFontSource.
virtual eFontSourceType IDOMFontSource::getFontSourceType () const =0
 Gets the font source type.
virtual const EDLSysStringIDOMFontSource::determineUri () const =0
 Determines the URI based on the font source (underlying font sources may be searched)
virtual eFontStreamFilterType IDOMFontSourceStreamFilter::getFontStreamFilterType () const =0
 Get the font stream filter type.
virtual IInputStreamPtr IDOMFontSourceStreamFilter::getStream () const =0
 Retrieves the output stream of the processor.
virtual const EDLSysStringIDOMFontSourceStreamFilter::determineUri () const =0
 Determines the URI based on the font source (underlying font sources may be searched)
virtual IDOMFontSourcePtr IDOMFontSourceStreamFilter::getInputFontSource () const =0
 Get the input font source of this font stream processor.
 IDOMFontSourceFromStream::Data::Data ()
static const CClassIDIDOMFontSourceFromStream::classID ()
 Retrieves the class id of IDOMFontSourceFromStream.
virtual IInputStreamPtr IDOMFontSourceFromStream::getStream () const =0
 Return the actual stream.
virtual int64 IDOMFontSourceFromStream::getStreamLength () const =0
 Retrieves the stream length, if possible.
virtual const EDLSysStringIDOMFontSourceFromStream::determineUri () const =0
 Determines the URI based on the font source (underlying font sources may be searched)
virtual bool IDOMFontSourceFromStream::getFromPcl () const =0
 Determine if this source was created from PCL/5 or PCL/XL.
static const CClassIDIDOMFontSourceObfuscationConverter::classID ()
 Retrieves the class id of IDOMFontSourceObfuscationConverter.
virtual IInputStreamPtr IDOMFontSourceObfuscationConverter::getStream () const =0
 Get the output stream of the processor.
virtual const EDLSysStringIDOMFontSourceObfuscationConverter::determineUri () const =0
 Determines the URI based on the font source (underlying font sources may be searched)
virtual IDOMFontSourcePtr IDOMFontSourceObfuscationConverter::getInputFontSource () const =0
 Get the underlying font source of this font stream processor.
static const CClassIDIDOMFont::classID ()
 Retrieves class id of IDOMFont.
virtual eFontType IDOMFont::getFontType () const =0
 Gets the font type. See eFontType for more information on font types.
virtual IDOMFontSourcePtr IDOMFont::getFontSource () const =0
 Get the font source of this font.
virtual void IDOMFont::setFontSource (const IDOMFontSourcePtr &fontSource)=0
 Sets the font source for this font.
virtual IInputStreamPtr IDOMFont::getFontBaseStream () const =0
 Return the base stream for this font, obtaining it from the font source.
virtual void IDOMFont::getCharacterMap (CCharacterMap &characterMap, uint32 fontIndex=0U)=0
 Get the character map for this font.
static const CClassIDIFontOpenTypeTableAccessor::classID ()
 Retrieves class id of IFontOpenTypeTableAccessor.
virtual bool IFontOpenTypeTableAccessor::hasTable (TableSignatureID tableSignatureID)=0
 Returns an indicator of the existence of a font table with the given signature.
virtual int32 IFontOpenTypeTableAccessor::getTableSize (TableSignatureID tableSignatureID, bool withPadding=true)=0
 Returns the size of the table given by the signature. An attempt to get the size of a non-existent table will result in an exception.
virtual uint32 IFontOpenTypeTableAccessor::getTableCheckSum (TableSignatureID tableSignatureID)=0
 Returns the check sum of the table given by the signature An attempt to get the checksum of a non-existant table will result in an exception.
virtual int32 IFontOpenTypeTableAccessor::tableWrite (const IOutputStreamPtr &outStream, TableSignatureID tableSignatureID, int32 startPos=0, int32 endPos=-1, bool withPadding=true)=0
 Writes the table to the given output stream @ param outStream The output stream.
virtual int32 IFontOpenTypeTableAccessor::tableCopy (unsigned char *buf, int32 bufSize, TableSignatureID tableSignatureId, bool withPadding=true)=0
 Copies the table to the given buffer.
static const CClassIDIFontTrueTypeGlyphIDEnumerator::classID ()
 Retrieves class id of IFontOpenTypeTableEnumerator.
virtual IDOMGlyph::GlyphID IFontTrueTypeGlyphIDEnumerator::getGlyphID ()=0
 Get the glyph ID of the current item.
virtual bool IFontTrueTypeGlyphIDEnumerator::haveMoreEnumerationItems ()=0
 Indicate whether there are more items in the enumeration.
virtual bool IFontTrueTypeGlyphIDEnumerator::nextEnumerationItem ()=0
 Get the next enumeration item.
static const CClassIDIFontTrueTypeGlyphAccessor::classID ()
 Retrieves class id of IFontTrueTypeGlyphAccessor.
virtual bool IFontTrueTypeGlyphAccessor::hasGlyph (IDOMGlyph::GlyphID glyphID)=0
 Indicate existance of glyph ID in the font.
virtual int32 IFontTrueTypeGlyphAccessor::getGlyphDataSize (IDOMGlyph::GlyphID glyphID)=0
 Gets the size of the glyph data.
virtual int32 IFontTrueTypeGlyphAccessor::glyphDataWrite (const IOutputStreamPtr &outStream, IDOMGlyph::GlyphID glyphID)=0
 Writes the glyph associated with the glyphID to the given output stream.
virtual IDOMGlyphIDEnumeratorPtr IFontTrueTypeGlyphAccessor::getDependantGlyphIDEnumerator (IDOMGlyph::GlyphID glyphID)=0
 Gets a glyphID enumerator which lists the dependant glyph IDs of the given glyphID.
static EDL_API IDOMFontOpenTypePtr IDOMFontOpenType::create (IEDLClassFactory *pFactory, const IInputStreamPtr &stream)
 Simplified creator of a font from a stream. Throws an IEDLError exception on failure.
 IDOMFontOpenType::Signature::Signature ()
 Construct a new Signature object.
 IDOMFontOpenType::Signature::Signature (const char *str)
 Construct a new Signature object with a given string.
 IDOMFontOpenType::Signature::Signature (eSignature sSignature)
 Construct a new Signature object of a given signature type.
 IDOMFontOpenType::Signature::Signature (TableSignatureID signature)
 Construct a new Signature object with a given TableSignatureID.
void IDOMFontOpenType::Signature::set (const char *str)
void IDOMFontOpenType::Signature::set (TableSignatureID signature)
 Set the TableSignatureID.
void IDOMFontOpenType::Signature::set (eSignature signature)
TableSignatureID IDOMFontOpenType::Signature::getSignatureID ()
 Get the Signature I D object.
eSignature IDOMFontOpenType::Signature::getSignatureType ()
 Get the Signature Type object.
void IDOMFontOpenType::Signature::getStr (char *str)
static const char * IDOMFontOpenType::Signature::signatureToStr (TableSignatureID signatureID)
 Get a TableTableSignatureID as a string.
bool IDOMFontOpenType::Signature::equals (TableSignatureID signature)
 Check if the signature matches a given TableSignatureID.
bool IDOMFontOpenType::Signature::equals (Signature &signature)
 Check if the signature matches a given OpenType signature.
bool IDOMFontOpenType::Signature::isLessThan (TableSignatureID signature)
 Check if the signature is less than a given TableSignatureID.
bool IDOMFontOpenType::Signature::isGreaterThan (TableSignatureID signature)
 Check if the signature is greater than a given TableSignatureID.
bool IDOMFontOpenType::Signature::equals (eSignature signature)
 Check if the signature matches a given OpenType signature type.
 IDOMFontOpenType::DECL_SMART_PTR (CCIDMap)
static EDL_API CCIDMapPtr IDOMFontOpenType::CCIDMap::create (const EDLRawString &registry, const EDLRawString &ordering, int32 supplement, const CEDLVector< uint16 > &mapping)
 IDOMFontOpenType::Data::Data ()
static const CClassIDIDOMFontOpenType::classID ()
 Retrieves the class id of IDOMFontOpenType.
virtual bool IDOMFontOpenType::getObfuscated () const =0
 Returns true if font is obfuscated. Obfuscated fonts are only found in XPS Documents.
virtual bool IDOMFontOpenType::getIsPSStandardFont () const =0
 Establishes whether the font is a standard PostScript font.
virtual bool IDOMFontOpenType::getIsPDFStandardFont () const =0
 Establishes whether the font is a standard PDF font.
virtual bool IDOMFontOpenType::getEmbedded () const =0
 Establishes whether the font is flagged for embeddeding.
virtual void IDOMFontOpenType::setEmbedded (bool embedded)=0
 Sets whether of not the font is flagged for embeddeding.
virtual bool IDOMFontOpenType::getSubsetted () const =0
 Requests if the font reports to be a subset.
virtual EDLRawString IDOMFontOpenType::getRequestedFontName () const =0
 Get the name of the font as requested by the input document. This is only useful for PDF and PostScript input. If a font has to be substituted for another requested font, this will return the name of the font the input desired. The encoding of this font name is not defined.
virtual EDLSysString IDOMFontOpenType::getPostScriptName (IEDLClassFactory *pFactory, int32 fontIndex)=0
 Get the "PostScript" Name of the font, from the font data itself. This is usually extracted from the 'name' OpenType table, but may be synthesized if the name cannot be obtained.
virtual EDLSysString IDOMFontOpenType::getFullName (IEDLClassFactory *pFactory, int32 fontIndex)=0
 Get the "Full" Name of the font, from the font data itself. This is usually extracted from the 'name' OpenType table, but may be synthesized if the name cannot be obtained.
virtual eOpenTypeFontType IDOMFontOpenType::getOpenTypeFontType ()=0
 Returns the sub font type for this opentype font.
virtual eOriginalFontType IDOMFontOpenType::getOriginalFontType ()=0
 Returns the original font type for this opentype font.
virtual IFontOpenTypeTableAccessorPtr IDOMFontOpenType::getFontOpenTypeTableAccessor (uint32 fontIndex=0)=0
 Creates an OpenType font table accessor.
virtual IFontTrueTypeGlyphAccessorPtr IDOMFontOpenType::getFontTrueTypeGlyphAccessor (uint32 fontIndex=0, bool stripInstructions=false)=0
 Creates a TrueType glyph accessor.
virtual uint16 IDOMFontOpenType::getFontLicenseFromOS2Table (uint32 fontIndex=0)=0
 Gets the fsType field (embedded licensing information) from the OS/2 table.
virtual bool IDOMFontOpenType::getIsRestricted (uint32 fontIndex=0)=0
 Is the font marked as restricted from embedding according to its license?
virtual IDOMFontOpenTypeTTPtr IDOMFontOpenType::createTrueTypeOnlyFontVersion (const ISessionPtr &ptrSession, bool regenerateStream)=0
 Create a TrueType only font from this OpenType font that may contain CFF fonts.
virtual IDOMFontOpenTypePtr IDOMFontOpenType::createSubsetFont (const ISessionPtr &ptrSession, const CEDLVector< uint16 > &usedGlyphs, const CEDLVector< uint32 > &usedUnicode)=0
 Create a Subsetted version if this font.
virtual IDOMFontOpenTypePtr IDOMFontOpenType::createRenamedFont (const ISessionPtr &ptrSession, const EDLSysString &fontName, uint32 fontIndex=0)=0
 Get a renamed version of this font. An exception of type IEDLError is thrown on failure.
virtual const CEDLSimpleBufferIDOMFontOpenType::getOriginalOS2Table () const =0
 Obtain the original OS/2 Table, if present, that was included in the font.
virtual CCIDMapConstPtr IDOMFontOpenType::getCidMap () const =0
 Obtain the CID Map for this font, if present.
virtual int32 IDOMFontOpenType::getFlags () const =0
 Obtain the PDF FontDescriptor Style flags, if present.
virtual const CEDLSimpleBufferIDOMFontOpenType::getPanose () const =0
 Obtain the PDF Style Panose information, if present.
virtual void IDOMFontOpenType::setCidMap (const CCIDMapConstPtr &cidMap)=0
 Set or clear the CIDMap for the font. Valid only for TrueType fonts.
virtual bool IDOMFontOpenType::validateInstructions (const ISessionPtr &session, uint32 fontIndex=0)=0
 Validate glyph instructions.
virtual IDOMFontOpenTypePtr IDOMFontOpenType::stripInstructions (const ISessionPtr &session, uint32 fontIndex=0, bool all=false)=0
 Strip glyph instructions.
virtual EDLRawString IDOMFontOpenType::getOriginalPdfEncoding () const =0
 Obtain the original PDF Font Encoding, if present.
virtual void IDOMFontOpenType::removeOriginalPdfEncoding ()=0
 Clear the original PDF Font Encoding, if set.
static const CClassIDIDOMFontOpenTypeTT::classID ()
 Retrieves class id of IDOM.
 IDOMFontOpenTypeTT::Data::Data ()
virtual int32 IDOMFontOpenTypeTT::writeFont (const IOutputStreamPtr &outStream)=0
 Write the converted OpenType font to stream (CFF style Opentype fonts are converted to TTF style).
virtual int32 IDOMFontOpenTypeTT::writeFont (const EDLSysString &filePath, bool isTemplate=false)
 Write the converted OpenType font to a file (CFF style Opentype fonts are converted to TTF style). This method is normally used to debug and test OpenType CFF->TTF converted fonts.
static const CClassIDIDOMType3Font::classID ()
 Retrieves class id of IDOM.
virtual DOMid IDOMType3Font::getId () const =0
 Retrieves the unique ID of this font. This ID is allocated on creation. Clones of this font will receive a new id.
virtual bool IDOMType3Font::hasGlyph (const EDLSysString &glyphName) const =0
 Determines if the font already has a glyph with the given name.
virtual IDOMGlyphPtr IDOMType3Font::getGlyph (const EDLSysString &glyphName) const =0
 Retrieves a glyph of the given name. An exception with code EDL_ERR_TYPE3_GLYPH_NOT_FOUND will be thrown if no such glyph is present.
virtual bool IDOMType3Font::hasGlyph (uint32 codePoint) const =0
 Determines if the font already has a glyph with the given unicode codepoint.
virtual IDOMGlyphPtr IDOMType3Font::getGlyph (uint32 codePoint) const =0
 Retrieves a glyph of the given unicode codepoint, if it exists. An exception with code EDL_ERR_TYPE3_GLYPH_NOT_FOUND will be thrown if no such glyph is present.
virtual bool IDOMType3Font::hasGlyph (IDOMGlyph::GlyphID glyphID) const =0
 Determines if the font already has a glyph with the given glyph ID.
virtual IDOMGlyphPtr IDOMType3Font::getGlyph (IDOMGlyph::GlyphID glyphID) const =0
 Retrieves a glyph of the given GlyphID, if it exists. An exception with code EDL_ERR_TYPE3_GLYPH_NOT_FOUND will be thrown if no such glyph is present.
virtual CDOMGlyphVect IDOMType3Font::getGlyphs () const =0
 Obtain a vector of all of the glyphs present in this font.
virtual void IDOMType3Font::deleteGlyphs ()=0
 Delete the glyph collection from the font.
virtual void IDOMType3Font::addGlyph (const IDOMGlyphPtr &glyph)=0
 Adds a glyph of the given name to the font.
virtual FRect IDOMType3Font::getBBox ()=0
 Returns font's bounding box.
virtual JawsMako::IPDFDictionaryPtr IDOMType3Font::getFontDictionary () const =0
 Fetch the font dictionary. Do not edit the returned dictionary.

Variables

eFontSourceType IDOMFontSource::Data::sourceType
IDOMFontSourcePtr IDOMFontSourceStreamFilter::Data::inputFontSource
EDLSysString IDOMFontSourceFromStream::Data::uri
IInputStreamPtr IDOMFontSourceFromStream::Data::stream
uint64 IDOMFontSourceFromStream::Data::streamLength
bool IDOMFontSourceFromStream::Data::fromPcl
IDOMFontSourcePtr IDOMFontSourceObfuscationConverter::Data::inputFontSource
 The input font source for the converter.
eOperation IDOMFontSourceObfuscationConverter::Data::operation
 The obfuscation or deobfuscation operation.
IDOMFontSourcePtr IDOMFont::Data::fontSource
EDLRawString IDOMFontOpenType::CCIDMap::registry
EDLRawString IDOMFontOpenType::CCIDMap::ordering
int32 IDOMFontOpenType::CCIDMap::supplement
CEDLVector< uint16IDOMFontOpenType::CCIDMap::mapping
bool IDOMFontOpenType::Data::embedded
bool IDOMFontOpenType::Data::obfuscated
EDLRawString IDOMFontOpenType::Data::requestedFontName
bool IDOMFontOpenType::Data::psStandardFont
bool IDOMFontOpenType::Data::pdfStandardFont
bool IDOMFontOpenType::Data::subsetted
int32 IDOMFontOpenType::Data::flags
CEDLSimpleBuffer IDOMFontOpenType::Data::panose
eOriginalFontType IDOMFontOpenType::Data::originalFontType
CEDLSimpleBuffer IDOMFontOpenType::Data::originalOS2Table
CCIDMapConstPtr IDOMFontOpenType::Data::cidMap
EDLRawString IDOMFontOpenType::Data::originalPdfEncoding
uint32 IDOMFontOpenTypeTT::Data::fontIndex
JawsMako::IPDFDictionaryPtr IDOMType3Font::Data::fontDict
IEDLTempStorePtr IDOMType3Font::Data::tempStore
IEDLClassFactoryIDOMType3Font::Data::pFactory

Detailed Description

Macro Definition Documentation

◆ IDOMFontClassID

#define IDOMFontClassID   0x4330123e, 0x7e6211dc, 0x83140800, 0x200c9a66

◆ IDOMFontOpenTypeClassID

#define IDOMFontOpenTypeClassID   0x287baf3f, 0x307e4aa0, 0xa66f981f, 0xd4ac090a

◆ IDOMFontOpenTypeTTClassID

#define IDOMFontOpenTypeTTClassID   0x47fda935, 0xb25944b3, 0xbdc1061b, 0x7356cf50

◆ IDOMFontSourceFromStreamClassID

#define IDOMFontSourceFromStreamClassID   0x6d2e3ca8, 0x821511dc, 0x83140800, 0x200c9a66

◆ IDOMFontSourceObfuscationConverterClassID

#define IDOMFontSourceObfuscationConverterClassID   0x51e24e4a, 0x831a11dc, 0x83140800, 0x200c9a66

◆ IDOMType3FontClassID

#define IDOMType3FontClassID   0xb885316f, 0x7b114d80, 0x8fbe958c, 0xf1b34ab3

◆ IFontOpenTypeTableAccessorClassID

#define IFontOpenTypeTableAccessorClassID   0x06e3b890, 0xda2311dc, 0x95ff0800, 0x200c9a66

◆ IFontTrueTypeGlyphAccessorClassID

#define IFontTrueTypeGlyphAccessorClassID   0x114cab20, 0xda2311dc, 0x95ff0800, 0x200c9a66

◆ IFontTrueTypeGlyphIDEnumeratorClassID

#define IFontTrueTypeGlyphIDEnumeratorClassID   0xa8c1c370, 0xdb1111dc, 0x95ff0800, 0x200c9a66

Enumeration Type Documentation

◆ eFontStreamFilterType

An enumeration type used to identify the source type of a font.

Enumerator
eFontStreamFilterTypeNone 

Not specified.

eFontStreamFilterTypeObfuscation 

Obfuscation filter.

◆ eOperation

type used to uniquely identify the conversion direction

Enumerator
eObfuscate 

Obfuscation.

eDeobfuscate 

Deobfuscation.

Function Documentation

◆ addGlyph()

virtual void IDOMType3Font::addGlyph ( const IDOMGlyphPtr & glyph)
pure virtual

Adds a glyph of the given name to the font.

Parameters
glyphThe glyph

◆ classID() [1/10]

const CClassID & IDOMFont::classID ( )
inlinestatic

Retrieves class id of IDOMFont.

Returns
CClassID class id of the element

◆ classID() [2/10]

const CClassID & IDOMFontOpenType::classID ( )
inlinestatic

Retrieves the class id of IDOMFontOpenType.

Returns
CClassID Class id of the element

◆ classID() [3/10]

const CClassID & IDOMFontOpenTypeTT::classID ( )
inlinestatic

Retrieves class id of IDOM.

Returns
CClassID class id of the element

◆ classID() [4/10]

const CClassID & IDOMFontSource::classID ( )
inlinestatic

Retrieves the class id of IDOMFontSource.

Returns
CClassID The class id of the element

◆ classID() [5/10]

const CClassID & IDOMFontSourceFromStream::classID ( )
inlinestatic

Retrieves the class id of IDOMFontSourceFromStream.

Returns
CClassID Returns the class id of the element.

◆ classID() [6/10]

const CClassID & IDOMFontSourceObfuscationConverter::classID ( )
inlinestatic

Retrieves the class id of IDOMFontSourceObfuscationConverter.

Returns
CClassID The class id of the element

◆ classID() [7/10]

const CClassID & IDOMType3Font::classID ( )
inlinestatic

Retrieves class id of IDOM.

Returns
CClassID class id of the element

◆ classID() [8/10]

const CClassID & IFontOpenTypeTableAccessor::classID ( )
inlinestatic

Retrieves class id of IFontOpenTypeTableAccessor.

Returns
CClassID class id of the element

◆ classID() [9/10]

const CClassID & IFontTrueTypeGlyphAccessor::classID ( )
inlinestatic

Retrieves class id of IFontTrueTypeGlyphAccessor.

Returns
CClassID class id of the element

◆ classID() [10/10]

const CClassID & IFontTrueTypeGlyphIDEnumerator::classID ( )
inlinestatic

Retrieves class id of IFontOpenTypeTableEnumerator.

Returns
CClassID class id of the element

◆ create() [1/2]

EDL_API CCIDMapPtr IDOMFontOpenType::CCIDMap::create ( const EDLRawString & registry,
const EDLRawString & ordering,
int32 supplement,
const CEDLVector< uint16 > & mapping )
static

◆ create() [2/2]

EDL_API IDOMFontOpenTypePtr IDOMFontOpenType::create ( IEDLClassFactory * pFactory,
const IInputStreamPtr & stream )
static

Simplified creator of a font from a stream. Throws an IEDLError exception on failure.

Parameters
pFactoryEDL class factory to use.
streamThe font stream.
Returns
IDOMFontOpenTypePtr the new font

◆ createRenamedFont()

virtual IDOMFontOpenTypePtr IDOMFontOpenType::createRenamedFont ( const ISessionPtr & ptrSession,
const EDLSysString & fontName,
uint32 fontIndex = 0 )
pure virtual

Get a renamed version of this font. An exception of type IEDLError is thrown on failure.

Parameters
ptrSessionA pointer to the EDL session.
fontNameThe desired font name
fontIndexThe index of the font, if the font being renamed is a TrueType collection. The default is zero.
Returns
IDOMFontOpenTypePtr The renamed font.

◆ createSubsetFont()

virtual IDOMFontOpenTypePtr IDOMFontOpenType::createSubsetFont ( const ISessionPtr & ptrSession,
const CEDLVector< uint16 > & usedGlyphs,
const CEDLVector< uint32 > & usedUnicode )
pure virtual

Create a Subsetted version if this font.

Provide a vector of glyph IDs and/or unicode codepoints, and a subset font containing only those glyphs required will be generated. Currently only fonts with 3,0 or 3,1 format 4 subtables or a 3,10 format 12 subtable are supported. Glyphs used by composite glyphs that are to be retained in the subfont will be automatically included. Glyphs or codepoints that are out of range will be ignored.

Parameters
ptrSessionA pointer to the EDL session.
usedGlyphsA vector of glyph IDs that should be retained in the subset font.
usedUnicodeA vector of unicode code points whose underlying glyphs should be retained in the subset font.
Returns
IDOMFontOpenTypePtr The subsetted font

◆ createTrueTypeOnlyFontVersion()

virtual IDOMFontOpenTypeTTPtr IDOMFontOpenType::createTrueTypeOnlyFontVersion ( const ISessionPtr & ptrSession,
bool regenerateStream )
pure virtual

Create a TrueType only font from this OpenType font that may contain CFF fonts.

Parameters
ptrSessionA pointer to the EDL session.
regenerateStreamDetermines whether the stream should be regenerated
Returns
IDOMFontOpenTypeTTPtr The resulting TrueType-only font.

◆ Data() [1/4]

IDOMFontOpenType::Data::Data ( )
inline

◆ Data() [2/4]

IDOMFontOpenTypeTT::Data::Data ( )
inline

◆ Data() [3/4]

IDOMFontSource::Data::Data ( )
inline

◆ Data() [4/4]

IDOMFontSourceFromStream::Data::Data ( )
inline

◆ DECL_SMART_PTR()

IDOMFontOpenType::DECL_SMART_PTR ( CCIDMap )

◆ deleteGlyphs()

virtual void IDOMType3Font::deleteGlyphs ( )
pure virtual

Delete the glyph collection from the font.

◆ determineUri() [1/4]

virtual const EDLSysString & IDOMFontSource::determineUri ( ) const
pure virtual

Determines the URI based on the font source (underlying font sources may be searched)

Returns
EDLSysString Returns the uri.

Implemented in IDOMFontSourceFromStream, IDOMFontSourceObfuscationConverter, and IDOMFontSourceStreamFilter.

◆ determineUri() [2/4]

virtual const EDLSysString & IDOMFontSourceFromStream::determineUri ( ) const
pure virtual

Determines the URI based on the font source (underlying font sources may be searched)

Returns
EDLSysString Returns the uri.

Implements IDOMFontSource.

◆ determineUri() [3/4]

virtual const EDLSysString & IDOMFontSourceObfuscationConverter::determineUri ( ) const
pure virtual

Determines the URI based on the font source (underlying font sources may be searched)

Returns
EDLSysString. Returns the uri.

Implements IDOMFontSourceStreamFilter.

◆ determineUri() [4/4]

virtual const EDLSysString & IDOMFontSourceStreamFilter::determineUri ( ) const
pure virtual

Determines the URI based on the font source (underlying font sources may be searched)

Returns
EDLSysString Returns the uri.

Implements IDOMFontSource.

Implemented in IDOMFontSourceObfuscationConverter.

◆ equals() [1/3]

bool IDOMFontOpenType::Signature::equals ( eSignature signature)
inline

Check if the signature matches a given OpenType signature type.

Parameters
signatureThe signature with which to compare
Returns
bool True if equal

◆ equals() [2/3]

bool IDOMFontOpenType::Signature::equals ( Signature & signature)
inline

Check if the signature matches a given OpenType signature.

Parameters
signatureThe signature with which to compare
Returns
bool True if equal

◆ equals() [3/3]

bool IDOMFontOpenType::Signature::equals ( TableSignatureID signature)
inline

Check if the signature matches a given TableSignatureID.

Parameters
signatureThe signature with which to compare
Returns
bool True if equal

◆ getBBox()

virtual FRect IDOMType3Font::getBBox ( )
pure virtual

Returns font's bounding box.

Returns
FRect The bounding box

◆ getCharacterMap()

virtual void IDOMFont::getCharacterMap ( CCharacterMap & characterMap,
uint32 fontIndex = 0U )
pure virtual

Get the character map for this font.

Parameters
characterMapThe character map to populate.
fontIndexThe index of the font - only used for TTC fonts.

◆ getCidMap()

virtual CCIDMapConstPtr IDOMFontOpenType::getCidMap ( ) const
pure virtual

Obtain the CID Map for this font, if present.

     The CIDMap in a PDF CID font describes the mapping from PDF CIDs to
     glyph IDs. In PDF, CIDs may come from a particular ordering and supplement.
     That is, the CIDs conform to a known and understood character set.

     This information is only useful for creating PDF output where the CID information
     needs to be preserved for best interoperability, especially if the font is not
     to be embedded. This information is not required to use this font.

     Mako's PDF input will only create this entry for CID fonts where the CIDMap is
     present and uses an ordering other than Identity.

     Only relevant for TrueType-based CID Fonts.
Returns
CCIDMapConstPtr The CIDMap, or NULL if not present.

◆ getDependantGlyphIDEnumerator()

virtual IDOMGlyphIDEnumeratorPtr IFontTrueTypeGlyphAccessor::getDependantGlyphIDEnumerator ( IDOMGlyph::GlyphID glyphID)
pure virtual

Gets a glyphID enumerator which lists the dependant glyph IDs of the given glyphID.

Parameters
glyphIDThe given glyph ID
Returns
IDOMGlyphIDEnumeratorPtr The enumerator, or NULL if the glyph is not composite.

◆ getEmbedded()

virtual bool IDOMFontOpenType::getEmbedded ( ) const
pure virtual

Establishes whether the font is flagged for embeddeding.

Inputs will set this to true if the font was embedded in the input or false otherwise. Outputs will honour this setting, if possible, or not overridden. Currently this will only occur for PDF and PS output.

Returns
bool True if the font is flagged for embedding

◆ getFlags()

virtual int32 IDOMFontOpenType::getFlags ( ) const
pure virtual

Obtain the PDF FontDescriptor Style flags, if present.

     The flags are described in the PDF specification. Here the flags are
     masked to the flags that affect style:

     * FixedPitch (bit 1)
     * Serif (bit 2)
     * Script (bit 4)
     * Italic (bit 7)
     * AllCap (bit 17)
     * SmallCap (bit 18)
     * ForceBold (bit 19)

     Currently only present for TrueType-based CID Fonts.
Returns
int32 The flags, or a negative value if not present.

◆ getFontBaseStream()

virtual IInputStreamPtr IDOMFont::getFontBaseStream ( ) const
pure virtual

Return the base stream for this font, obtaining it from the font source.

Returns
IInputStreamPtr The base stream

◆ getFontDictionary()

virtual JawsMako::IPDFDictionaryPtr IDOMType3Font::getFontDictionary ( ) const
pure virtual

Fetch the font dictionary. Do not edit the returned dictionary.

Returns
IPDFDictionaryPtr The font dictionary

◆ getFontLicenseFromOS2Table()

virtual uint16 IDOMFontOpenType::getFontLicenseFromOS2Table ( uint32 fontIndex = 0)
pure virtual

Gets the fsType field (embedded licensing information) from the OS/2 table.

Parameters
fontIndexThe index of the font
Returns
uint16 The function returns the fsType field from the OS/2 table, or zero if the table does not exist in the font.

◆ getFontOpenTypeTableAccessor()

virtual IFontOpenTypeTableAccessorPtr IDOMFontOpenType::getFontOpenTypeTableAccessor ( uint32 fontIndex = 0)
pure virtual

Creates an OpenType font table accessor.

Parameters
fontIndexThe index of the font - only used for TTC fonts.
Returns
IFontOpenTypeTableAccessorPtr The accessor

◆ getFontSource()

virtual IDOMFontSourcePtr IDOMFont::getFontSource ( ) const
pure virtual

Get the font source of this font.

Returns
IDOMFontSourcePtr The font source.

◆ getFontSourceType()

virtual eFontSourceType IDOMFontSource::getFontSourceType ( ) const
pure virtual

Gets the font source type.

Returns
eFontSourceType The font source type.

◆ getFontStreamFilterType()

virtual eFontStreamFilterType IDOMFontSourceStreamFilter::getFontStreamFilterType ( ) const
pure virtual

Get the font stream filter type.

Returns
eFontStreamFilterType The font stream filter type

◆ getFontTrueTypeGlyphAccessor()

virtual IFontTrueTypeGlyphAccessorPtr IDOMFontOpenType::getFontTrueTypeGlyphAccessor ( uint32 fontIndex = 0,
bool stripInstructions = false )
pure virtual

Creates a TrueType glyph accessor.

Parameters
fontIndexThe index of the font - only used for TTC fonts.
stripInstructionsDetermines whether instructions are stripped. Default is false
Returns
IFontTrueTypeGlyphAccessorPtr The accessor

◆ getFontType()

virtual eFontType IDOMFont::getFontType ( ) const
pure virtual

Gets the font type. See eFontType for more information on font types.

Returns
eFontType. Returns the font type.

◆ getFromPcl()

virtual bool IDOMFontSourceFromStream::getFromPcl ( ) const
pure virtual

Determine if this source was created from PCL/5 or PCL/XL.

Returns
bool True if created for PCL/5 or PCL/XL.

◆ getFullName()

virtual EDLSysString IDOMFontOpenType::getFullName ( IEDLClassFactory * pFactory,
int32 fontIndex )
pure virtual

Get the "Full" Name of the font, from the font data itself. This is usually extracted from the 'name' OpenType table, but may be synthesized if the name cannot be obtained.

Parameters
fontIndexThe index of the desired font (if a TrueType collection)
pFactoryA pointer to an EDL Class factory.
Returns
EDLSysString The full font name

◆ getGlyph() [1/3]

virtual IDOMGlyphPtr IDOMType3Font::getGlyph ( const EDLSysString & glyphName) const
pure virtual

Retrieves a glyph of the given name. An exception with code EDL_ERR_TYPE3_GLYPH_NOT_FOUND will be thrown if no such glyph is present.

Parameters
glyphNameThe glyph name
Returns
IDOMGlyphPtr The glyph

◆ getGlyph() [2/3]

virtual IDOMGlyphPtr IDOMType3Font::getGlyph ( IDOMGlyph::GlyphID glyphID) const
pure virtual

Retrieves a glyph of the given GlyphID, if it exists. An exception with code EDL_ERR_TYPE3_GLYPH_NOT_FOUND will be thrown if no such glyph is present.

Parameters
glyphIDThe glyphID
Returns
IDOMGlyphPtr The glyph

◆ getGlyph() [3/3]

virtual IDOMGlyphPtr IDOMType3Font::getGlyph ( uint32 codePoint) const
pure virtual

Retrieves a glyph of the given unicode codepoint, if it exists. An exception with code EDL_ERR_TYPE3_GLYPH_NOT_FOUND will be thrown if no such glyph is present.

Parameters
codePointThe unicode codepoint
Returns
IDOMGlyphPtr The glyph

◆ getGlyphDataSize()

virtual int32 IFontTrueTypeGlyphAccessor::getGlyphDataSize ( IDOMGlyph::GlyphID glyphID)
pure virtual

Gets the size of the glyph data.

Parameters
glyphIDThe glyph ID
Returns
int32 The size of the glyph data, or negative on failure

◆ getGlyphID()

virtual IDOMGlyph::GlyphID IFontTrueTypeGlyphIDEnumerator::getGlyphID ( )
pure virtual

Get the glyph ID of the current item.

Returns
IDOMGlyph::GlyphID The glyph ID

◆ getGlyphs()

virtual CDOMGlyphVect IDOMType3Font::getGlyphs ( ) const
pure virtual

Obtain a vector of all of the glyphs present in this font.

Returns
CDOMGlyphVect The glyphs

◆ getId()

virtual DOMid IDOMType3Font::getId ( ) const
pure virtual

Retrieves the unique ID of this font. This ID is allocated on creation. Clones of this font will receive a new id.

Returns
DOMid The DOM ID

◆ getInputFontSource() [1/2]

virtual IDOMFontSourcePtr IDOMFontSourceObfuscationConverter::getInputFontSource ( ) const
pure virtual

Get the underlying font source of this font stream processor.

Returns
IDOMFontSourcePtr The input font source

Implements IDOMFontSourceStreamFilter.

◆ getInputFontSource() [2/2]

virtual IDOMFontSourcePtr IDOMFontSourceStreamFilter::getInputFontSource ( ) const
pure virtual

Get the input font source of this font stream processor.

Returns
IDOMFontSourcePtr The source font source

Implemented in IDOMFontSourceObfuscationConverter.

◆ getIsPDFStandardFont()

virtual bool IDOMFontOpenType::getIsPDFStandardFont ( ) const
pure virtual

Establishes whether the font is a standard PDF font.

Returns
bool True if the font was selected when the input requested a standard PDF font

◆ getIsPSStandardFont()

virtual bool IDOMFontOpenType::getIsPSStandardFont ( ) const
pure virtual

Establishes whether the font is a standard PostScript font.

Returns
bool True if the font was selected when the input requested a standard PostScript font

◆ getIsRestricted()

virtual bool IDOMFontOpenType::getIsRestricted ( uint32 fontIndex = 0)
pure virtual

Is the font marked as restricted from embedding according to its license?

Parameters
fontIndexThe index of the font
Returns
bool true if the font is restricted, false otherwise.

◆ getObfuscated()

virtual bool IDOMFontOpenType::getObfuscated ( ) const
pure virtual

Returns true if font is obfuscated. Obfuscated fonts are only found in XPS Documents.

Embedded font obfuscation is a means of preventing end users from using standard ZIP utilities to extract fonts from XPS format documents and install them on their own systems.

Returns
bool Returns true if the font is obfuscated, false if it is not obfuscated

◆ getOpenTypeFontType()

virtual eOpenTypeFontType IDOMFontOpenType::getOpenTypeFontType ( )
pure virtual

Returns the sub font type for this opentype font.

Returns
eOpenTypeFontType The opentype font type

◆ getOriginalFontType()

virtual eOriginalFontType IDOMFontOpenType::getOriginalFontType ( )
pure virtual

Returns the original font type for this opentype font.

Returns
eOriginalFontType The original font type.

◆ getOriginalOS2Table()

virtual const CEDLSimpleBuffer & IDOMFontOpenType::getOriginalOS2Table ( ) const
pure virtual

Obtain the original OS/2 Table, if present, that was included in the font.

     Currently this information is only populated for PDF input, and only if
     the font had an OS/2 table. OS/2 information in fonts embedded in PDF tends
     to be problematic, and as such, much of the OS/2 table is regenerated partially
     or completely by PDF input.

     For uses which require the original OS/2 table data, it is made available here.

     Please note that this information is not used when font hashing is performed.
Returns
CEDLSimpleBuffer A reference to the original OS/2 table, or an empty buffer.

◆ getOriginalPdfEncoding()

virtual EDLRawString IDOMFontOpenType::getOriginalPdfEncoding ( ) const
pure virtual

Obtain the original PDF Font Encoding, if present.

     OpenType fonts created by IPDFInput will set this string to the Encoding or
     BaseEncoding name from the PDF font dictionary, which may be "MacRomanEncoding",
     "MacExpertEncoding" or "WinAnsiEncoding".  For PDF fonts that do not define an
     encoding, "StandardEncoding" will be used.  If the PDF font defines an Encoding
     dictionary with a Differences array, "Custom" will be returned.

     An empty string will be returned for OpenType fonts that were not created by IPDFInput.
Returns
EDLRawString The original PDF encoding, or an empty string.

◆ getPanose()

virtual const CEDLSimpleBuffer & IDOMFontOpenType::getPanose ( ) const
pure virtual

Obtain the PDF Style Panose information, if present.

     Please see the PDF and Panose documentation for details. If present,
     this is a 12 byte buffer describing style information which is useful
     for font substitution.

     Currently only present for TrueType-based CID Fonts.
Returns
CEDLSimpleBuffer A buffer containing the Panose information, or an empty buffer if Panose information is not present.

◆ getPostScriptName()

virtual EDLSysString IDOMFontOpenType::getPostScriptName ( IEDLClassFactory * pFactory,
int32 fontIndex )
pure virtual

Get the "PostScript" Name of the font, from the font data itself. This is usually extracted from the 'name' OpenType table, but may be synthesized if the name cannot be obtained.

Parameters
pFactoryA pointer to an EDL Class factory.
fontIndexThe index of the desired font (if a TrueType collection)
Returns
EDLSysString The PostScript font name

◆ getRequestedFontName()

virtual EDLRawString IDOMFontOpenType::getRequestedFontName ( ) const
pure virtual

Get the name of the font as requested by the input document. This is only useful for PDF and PostScript input. If a font has to be substituted for another requested font, this will return the name of the font the input desired. The encoding of this font name is not defined.

Returns
EDLRawString The requested font name if applicable, an empty string otherwise.

◆ getSignatureID()

TableSignatureID IDOMFontOpenType::Signature::getSignatureID ( )
inline

Get the Signature I D object.

Returns
TableSignatureID

◆ getSignatureType()

eSignature IDOMFontOpenType::Signature::getSignatureType ( )
inline

Get the Signature Type object.

Returns
eSignature

◆ getStr()

void IDOMFontOpenType::Signature::getStr ( char * str)

◆ getStream() [1/3]

virtual IInputStreamPtr IDOMFontSourceFromStream::getStream ( ) const
pure virtual

Return the actual stream.

Returns
IInputStreamPtr The stream

◆ getStream() [2/3]

virtual IInputStreamPtr IDOMFontSourceObfuscationConverter::getStream ( ) const
pure virtual

Get the output stream of the processor.

Returns
IInputStreamPtr The stream

Implements IDOMFontSourceStreamFilter.

◆ getStream() [3/3]

virtual IInputStreamPtr IDOMFontSourceStreamFilter::getStream ( ) const
pure virtual

Retrieves the output stream of the processor.

Returns
IInputStreamPtr The stream

Implemented in IDOMFontSourceObfuscationConverter.

◆ getStreamLength()

virtual int64 IDOMFontSourceFromStream::getStreamLength ( ) const
pure virtual

Retrieves the stream length, if possible.

Returns
int64 The stream length, or a negative length if it is not available

◆ getSubsetted()

virtual bool IDOMFontOpenType::getSubsetted ( ) const
pure virtual

Requests if the font reports to be a subset.

Currently, this is only set to true for PDF input, where the PDF indicates that the font is subset.

Returns
bool True if the font reports that it is a subset

◆ getTableCheckSum()

virtual uint32 IFontOpenTypeTableAccessor::getTableCheckSum ( TableSignatureID tableSignatureID)
pure virtual

Returns the check sum of the table given by the signature An attempt to get the checksum of a non-existant table will result in an exception.

Parameters
tableSignatureIDThe ID of the opentype table
Returns
uint32 The table data checksum

◆ getTableSize()

virtual int32 IFontOpenTypeTableAccessor::getTableSize ( TableSignatureID tableSignatureID,
bool withPadding = true )
pure virtual

Returns the size of the table given by the signature. An attempt to get the size of a non-existent table will result in an exception.

Parameters
tableSignatureIDThe ID of the opentype table
withPaddingIndicate whether the size includes 32 bit padding.
Returns
int32 The table size, or a negative value if the table is not present.

◆ glyphDataWrite()

virtual int32 IFontTrueTypeGlyphAccessor::glyphDataWrite ( const IOutputStreamPtr & outStream,
IDOMGlyph::GlyphID glyphID )
pure virtual

Writes the glyph associated with the glyphID to the given output stream.

Parameters
outStreamThe output stream
glyphIDThe glyph ID
Returns
int32 The size of data written, or negative on failure

◆ hasGlyph() [1/4]

virtual bool IDOMType3Font::hasGlyph ( const EDLSysString & glyphName) const
pure virtual

Determines if the font already has a glyph with the given name.

Parameters
glyphNameThe glyph name
Returns
bool true if the glyph is present, false otherwise

◆ hasGlyph() [2/4]

virtual bool IDOMType3Font::hasGlyph ( IDOMGlyph::GlyphID glyphID) const
pure virtual

Determines if the font already has a glyph with the given glyph ID.

Parameters
glyphIDThe glyphID
Returns
bool true if the glyph is present, false otherwise

◆ hasGlyph() [3/4]

virtual bool IDOMType3Font::hasGlyph ( uint32 codePoint) const
pure virtual

Determines if the font already has a glyph with the given unicode codepoint.

Parameters
codePointThe unicode codepoint
Returns
bool true if the glyph is present, false otherwise

◆ hasGlyph() [4/4]

virtual bool IFontTrueTypeGlyphAccessor::hasGlyph ( IDOMGlyph::GlyphID glyphID)
pure virtual

Indicate existance of glyph ID in the font.

Parameters
glyphIDThe glyph ID
Returns
bool Inidicator of existence

◆ hasTable()

virtual bool IFontOpenTypeTableAccessor::hasTable ( TableSignatureID tableSignatureID)
pure virtual

Returns an indicator of the existence of a font table with the given signature.

Parameters
tableSignatureIDThe ID of the opentype table
Returns
bool Indicator of table existence

◆ haveMoreEnumerationItems()

virtual bool IFontTrueTypeGlyphIDEnumerator::haveMoreEnumerationItems ( )
pure virtual

Indicate whether there are more items in the enumeration.

Returns
bool Whether there are more items in the enumeration.

◆ isGreaterThan()

bool IDOMFontOpenType::Signature::isGreaterThan ( TableSignatureID signature)
inline

Check if the signature is greater than a given TableSignatureID.

Parameters
signatureThe signature with which to compare
Returns
bool True if equal

◆ isLessThan()

bool IDOMFontOpenType::Signature::isLessThan ( TableSignatureID signature)
inline

Check if the signature is less than a given TableSignatureID.

Parameters
signatureThe signature with which to compare
Returns
bool True if equal

◆ nextEnumerationItem()

virtual bool IFontTrueTypeGlyphIDEnumerator::nextEnumerationItem ( )
pure virtual

Get the next enumeration item.

Returns
bool True on success

◆ removeOriginalPdfEncoding()

virtual void IDOMFontOpenType::removeOriginalPdfEncoding ( )
pure virtual

Clear the original PDF Font Encoding, if set.

◆ set() [1/3]

void IDOMFontOpenType::Signature::set ( const char * str)

◆ set() [2/3]

void IDOMFontOpenType::Signature::set ( eSignature signature)
Parameters
signature

◆ set() [3/3]

void IDOMFontOpenType::Signature::set ( TableSignatureID signature)
inline

Set the TableSignatureID.

Parameters
signatureThe signature to set

◆ setCidMap()

virtual void IDOMFontOpenType::setCidMap ( const CCIDMapConstPtr & cidMap)
pure virtual

Set or clear the CIDMap for the font. Valid only for TrueType fonts.

Parameters
cidMapThe CID map to set. Ownership is taken by the font.

◆ setEmbedded()

virtual void IDOMFontOpenType::setEmbedded ( bool embedded)
pure virtual

Sets whether of not the font is flagged for embeddeding.

Outputs will honour this setting, if possible, or not overridden. In particular, if a font is a standard font in the output format being used, this setting will be ignored. Currently this will only occur for PDF and PS output.

Parameters
embeddedSet to true to flag the font for embedding

◆ setFontSource()

virtual void IDOMFont::setFontSource ( const IDOMFontSourcePtr & fontSource)
pure virtual

Sets the font source for this font.

Parameters
fontSourceThe new font source

◆ Signature() [1/4]

IDOMFontOpenType::Signature::Signature ( )
inline

Construct a new Signature object.

◆ Signature() [2/4]

IDOMFontOpenType::Signature::Signature ( const char * str)
inline

Construct a new Signature object with a given string.

Parameters
strThe signature

◆ Signature() [3/4]

IDOMFontOpenType::Signature::Signature ( eSignature sSignature)
inline

Construct a new Signature object of a given signature type.

Parameters
sSignatureThe signature type

◆ Signature() [4/4]

IDOMFontOpenType::Signature::Signature ( TableSignatureID signature)
inline

Construct a new Signature object with a given TableSignatureID.

Parameters
signature

◆ signatureToStr()

const char * IDOMFontOpenType::Signature::signatureToStr ( TableSignatureID signatureID)
inlinestatic

Get a TableTableSignatureID as a string.

Parameters
signatureIDThe signature ID
Returns
const char* The string result

◆ stripInstructions()

virtual IDOMFontOpenTypePtr IDOMFontOpenType::stripInstructions ( const ISessionPtr & session,
uint32 fontIndex = 0,
bool all = false )
pure virtual

Strip glyph instructions.

Applies only to TrueType glyphs. This will attempt to strip some cases of broken instructions (hints) from a font.

Note that this it cannot detect issues seen only when rendering at a specific resolution and point size.

Parameters
sessionA pointer to the session.
fontIndexThe index of the font - only used for TTC fonts.
allWhether to strip all instructions from the font, or only instructions found to be invalid (the default).
Returns
IDOMFontOpenTypePtr The stripped font.

◆ tableCopy()

virtual int32 IFontOpenTypeTableAccessor::tableCopy ( unsigned char * buf,
int32 bufSize,
TableSignatureID tableSignatureId,
bool withPadding = true )
pure virtual

Copies the table to the given buffer.

Parameters
bufThe destination buffer
bufSizeSize of the destination buffer
tableSignatureIdThe ID of the opentype table
Returns
int32 Byte size of the table, or negative on error.

◆ tableWrite()

virtual int32 IFontOpenTypeTableAccessor::tableWrite ( const IOutputStreamPtr & outStream,
TableSignatureID tableSignatureID,
int32 startPos = 0,
int32 endPos = -1,
bool withPadding = true )
pure virtual

Writes the table to the given output stream @ param outStream The output stream.

Parameters
tableSignatureIDThe ID of the opentype table
withPaddingIndicate whether the size includes 32 bit padding.
Returns
int32 Byte count of the data written, or negative on error.

◆ validateInstructions()

virtual bool IDOMFontOpenType::validateInstructions ( const ISessionPtr & session,
uint32 fontIndex = 0 )
pure virtual

Validate glyph instructions.

Applies only to TrueType glyphs. This will attempt to detect some cases of broken instructions (hints) by rendering each glyph in the font and return a boolean value to indicate if any issues were found.

Note that while this function may be useful to detect general issues with fonts/glyph instructions it cannot detect issues seen only when rendering at a specific resolution and point size.

Parameters
sessionA pointer to the session.
fontIndexThe index of the font - only used for TTC fonts.
Returns
bool true on success, or false if invalid instructions were found.

◆ writeFont() [1/2]

virtual int32 IDOMFontOpenTypeTT::writeFont ( const EDLSysString & filePath,
bool isTemplate = false )
inlinevirtual

Write the converted OpenType font to a file (CFF style Opentype fonts are converted to TTF style). This method is normally used to debug and test OpenType CFF->TTF converted fonts.

Parameters
filePathThe file path or a file template with six trailing X's (e.g "/tmp/fontdump-XXXXXX").
isTemplateIndicates whether the "filePath" argument is to be treated as a path template instead of the intended path.
Returns
int32 The number of bytes written

◆ writeFont() [2/2]

virtual int32 IDOMFontOpenTypeTT::writeFont ( const IOutputStreamPtr & outStream)
pure virtual

Write the converted OpenType font to stream (CFF style Opentype fonts are converted to TTF style).

Parameters
outStreamThe output stream.
Returns
int32 The number of bytes written

Variable Documentation

◆ cidMap

CCIDMapConstPtr IDOMFontOpenType::Data::cidMap

◆ embedded

bool IDOMFontOpenType::Data::embedded

◆ flags

int32 IDOMFontOpenType::Data::flags

◆ fontDict

JawsMako::IPDFDictionaryPtr IDOMType3Font::Data::fontDict

◆ fontIndex

uint32 IDOMFontOpenTypeTT::Data::fontIndex

◆ fontSource

IDOMFontSourcePtr IDOMFont::Data::fontSource

◆ fromPcl

bool IDOMFontSourceFromStream::Data::fromPcl

◆ inputFontSource [1/2]

IDOMFontSourcePtr IDOMFontSourceObfuscationConverter::Data::inputFontSource

The input font source for the converter.

◆ inputFontSource [2/2]

IDOMFontSourcePtr IDOMFontSourceStreamFilter::Data::inputFontSource

◆ mapping

CEDLVector<uint16> IDOMFontOpenType::CCIDMap::mapping

The mapping from CID to GlyphID for all CIDs reachable in the font

◆ obfuscated

bool IDOMFontOpenType::Data::obfuscated

◆ operation

eOperation IDOMFontSourceObfuscationConverter::Data::operation

The obfuscation or deobfuscation operation.

◆ ordering

EDLRawString IDOMFontOpenType::CCIDMap::ordering

The name of the ordering, eg Japan1, Korea1, CNS1, GB1, etc

◆ originalFontType

eOriginalFontType IDOMFontOpenType::Data::originalFontType

◆ originalOS2Table

CEDLSimpleBuffer IDOMFontOpenType::Data::originalOS2Table

◆ originalPdfEncoding

EDLRawString IDOMFontOpenType::Data::originalPdfEncoding

◆ panose

CEDLSimpleBuffer IDOMFontOpenType::Data::panose

◆ pdfStandardFont

bool IDOMFontOpenType::Data::pdfStandardFont

◆ pFactory

IEDLClassFactory* IDOMType3Font::Data::pFactory

◆ psStandardFont

bool IDOMFontOpenType::Data::psStandardFont

◆ registry

EDLRawString IDOMFontOpenType::CCIDMap::registry

The registry in which this CID ordering is registered

◆ requestedFontName

EDLRawString IDOMFontOpenType::Data::requestedFontName

◆ sourceType

eFontSourceType IDOMFontSource::Data::sourceType

◆ stream

IInputStreamPtr IDOMFontSourceFromStream::Data::stream

◆ streamLength

uint64 IDOMFontSourceFromStream::Data::streamLength

◆ subsetted

bool IDOMFontOpenType::Data::subsetted

◆ supplement

int32 IDOMFontOpenType::CCIDMap::supplement

The supplement number of the character collection

◆ tempStore

IEDLTempStorePtr IDOMType3Font::Data::tempStore

◆ uri

EDLSysString IDOMFontSourceFromStream::Data::uri