![]() |
Mako 8.2.0 API
MakoCore SDK API Documentation
|
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 CClassID & | IDOMFontSource::classID () |
Retrieves the class id of IDOMFontSource. | |
virtual eFontSourceType | IDOMFontSource::getFontSourceType () const =0 |
Gets the font source type. | |
virtual const EDLSysString & | IDOMFontSource::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 EDLSysString & | IDOMFontSourceStreamFilter::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 CClassID & | IDOMFontSourceFromStream::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 EDLSysString & | IDOMFontSourceFromStream::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 CClassID & | IDOMFontSourceObfuscationConverter::classID () |
Retrieves the class id of IDOMFontSourceObfuscationConverter. | |
virtual IInputStreamPtr | IDOMFontSourceObfuscationConverter::getStream () const =0 |
Get the output stream of the processor. | |
virtual const EDLSysString & | IDOMFontSourceObfuscationConverter::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 CClassID & | IDOMFont::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 CClassID & | IFontOpenTypeTableAccessor::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 CClassID & | IFontTrueTypeGlyphIDEnumerator::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 CClassID & | IFontTrueTypeGlyphAccessor::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 ®istry, const EDLRawString &ordering, int32 supplement, const CEDLVector< uint16 > &mapping) |
IDOMFontOpenType::Data::Data () | |
static const CClassID & | IDOMFontOpenType::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 CEDLSimpleBuffer & | IDOMFontOpenType::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 CEDLSimpleBuffer & | IDOMFontOpenType::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 CClassID & | IDOMFontOpenTypeTT::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 CClassID & | IDOMType3Font::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. |
#define IDOMFontClassID 0x4330123e, 0x7e6211dc, 0x83140800, 0x200c9a66 |
#define IDOMFontOpenTypeClassID 0x287baf3f, 0x307e4aa0, 0xa66f981f, 0xd4ac090a |
#define IDOMFontOpenTypeTTClassID 0x47fda935, 0xb25944b3, 0xbdc1061b, 0x7356cf50 |
#define IDOMFontSourceFromStreamClassID 0x6d2e3ca8, 0x821511dc, 0x83140800, 0x200c9a66 |
#define IDOMFontSourceObfuscationConverterClassID 0x51e24e4a, 0x831a11dc, 0x83140800, 0x200c9a66 |
#define IDOMType3FontClassID 0xb885316f, 0x7b114d80, 0x8fbe958c, 0xf1b34ab3 |
#define IFontOpenTypeTableAccessorClassID 0x06e3b890, 0xda2311dc, 0x95ff0800, 0x200c9a66 |
#define IFontTrueTypeGlyphAccessorClassID 0x114cab20, 0xda2311dc, 0x95ff0800, 0x200c9a66 |
#define IFontTrueTypeGlyphIDEnumeratorClassID 0xa8c1c370, 0xdb1111dc, 0x95ff0800, 0x200c9a66 |
|
pure virtual |
Adds a glyph of the given name to the font.
glyph | The glyph |
|
inlinestatic |
|
inlinestatic |
Retrieves the class id of IDOMFontOpenType.
|
inlinestatic |
Retrieves class id of IDOM.
|
inlinestatic |
Retrieves the class id of IDOMFontSource.
|
inlinestatic |
Retrieves the class id of IDOMFontSourceFromStream.
|
inlinestatic |
Retrieves the class id of IDOMFontSourceObfuscationConverter.
|
inlinestatic |
Retrieves class id of IDOM.
|
inlinestatic |
Retrieves class id of IFontOpenTypeTableAccessor.
|
inlinestatic |
Retrieves class id of IFontTrueTypeGlyphAccessor.
|
inlinestatic |
Retrieves class id of IFontOpenTypeTableEnumerator.
|
static |
|
static |
Simplified creator of a font from a stream. Throws an IEDLError exception on failure.
pFactory | EDL class factory to use. |
stream | The font stream. |
|
pure virtual |
Get a renamed version of this font. An exception of type IEDLError is thrown on failure.
ptrSession | A pointer to the EDL session. |
fontName | The desired font name |
fontIndex | The index of the font, if the font being renamed is a TrueType collection. The default is zero. |
|
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.
ptrSession | A pointer to the EDL session. |
usedGlyphs | A vector of glyph IDs that should be retained in the subset font. |
usedUnicode | A vector of unicode code points whose underlying glyphs should be retained in the subset font. |
|
pure virtual |
Create a TrueType only font from this OpenType font that may contain CFF fonts.
ptrSession | A pointer to the EDL session. |
regenerateStream | Determines whether the stream should be regenerated |
|
inline |
|
inline |
|
inline |
|
inline |
IDOMFontOpenType::DECL_SMART_PTR | ( | CCIDMap | ) |
|
pure virtual |
Delete the glyph collection from the font.
|
pure virtual |
Determines the URI based on the font source (underlying font sources may be searched)
Implemented in IDOMFontSourceFromStream, IDOMFontSourceObfuscationConverter, and IDOMFontSourceStreamFilter.
|
pure virtual |
Determines the URI based on the font source (underlying font sources may be searched)
Implements IDOMFontSource.
|
pure virtual |
Determines the URI based on the font source (underlying font sources may be searched)
Implements IDOMFontSourceStreamFilter.
|
pure virtual |
Determines the URI based on the font source (underlying font sources may be searched)
Implements IDOMFontSource.
Implemented in IDOMFontSourceObfuscationConverter.
|
inline |
Check if the signature matches a given OpenType signature type.
signature | The signature with which to compare |
|
inline |
Check if the signature matches a given OpenType signature.
signature | The signature with which to compare |
|
inline |
Check if the signature matches a given TableSignatureID
.
signature | The signature with which to compare |
|
pure virtual |
Returns font's bounding box.
|
pure virtual |
Get the character map for this font.
characterMap | The character map to populate. |
fontIndex | The index of the font - only used for TTC fonts. |
|
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.
|
pure virtual |
Gets a glyphID enumerator which lists the dependant glyph IDs of the given glyphID.
glyphID | The given glyph ID |
|
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.
|
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.
|
pure virtual |
Return the base stream for this font, obtaining it from the font source.
|
pure virtual |
Fetch the font dictionary. Do not edit the returned dictionary.
Gets the fsType field (embedded licensing information) from the OS/2 table.
fontIndex | The index of the font |
|
pure virtual |
Creates an OpenType font table accessor.
fontIndex | The index of the font - only used for TTC fonts. |
|
pure virtual |
Get the font source of this font.
|
pure virtual |
Gets the font source type.
|
pure virtual |
Get the font stream filter type.
|
pure virtual |
Creates a TrueType glyph accessor.
fontIndex | The index of the font - only used for TTC fonts. |
stripInstructions | Determines whether instructions are stripped. Default is false |
|
pure virtual |
|
pure virtual |
Determine if this source was created from PCL/5 or PCL/XL.
|
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.
fontIndex | The index of the desired font (if a TrueType collection) |
pFactory | A pointer to an EDL Class factory. |
|
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.
glyphName | The glyph name |
|
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.
glyphID | The glyphID |
|
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.
codePoint | The unicode codepoint |
|
pure virtual |
Gets the size of the glyph data.
glyphID | The glyph ID |
|
pure virtual |
Get the glyph ID of the current item.
|
pure virtual |
Obtain a vector of all of the glyphs present in this font.
|
pure virtual |
Retrieves the unique ID of this font. This ID is allocated on creation. Clones of this font will receive a new id.
|
pure virtual |
Get the underlying font source of this font stream processor.
Implements IDOMFontSourceStreamFilter.
|
pure virtual |
Get the input font source of this font stream processor.
Implemented in IDOMFontSourceObfuscationConverter.
|
pure virtual |
Establishes whether the font is a standard PDF font.
|
pure virtual |
Establishes whether the font is a standard PostScript font.
|
pure virtual |
Is the font marked as restricted from embedding according to its license?
fontIndex | The index of the font |
|
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.
|
pure virtual |
Returns the sub font type for this opentype font.
|
pure virtual |
Returns the original font type for this opentype font.
|
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.
|
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.
|
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.
|
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.
pFactory | A pointer to an EDL Class factory. |
fontIndex | The index of the desired font (if a TrueType collection) |
|
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.
|
inline |
Get the Signature I D object.
|
inline |
Get the Signature Type object.
void IDOMFontOpenType::Signature::getStr | ( | char * | str | ) |
|
pure virtual |
Return the actual stream.
|
pure virtual |
Get the output stream of the processor.
Implements IDOMFontSourceStreamFilter.
|
pure virtual |
Retrieves the output stream of the processor.
Implemented in IDOMFontSourceObfuscationConverter.
|
pure virtual |
Retrieves the stream length, if possible.
|
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.
|
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.
tableSignatureID | The ID of the opentype table |
|
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.
tableSignatureID | The ID of the opentype table |
withPadding | Indicate whether the size includes 32 bit padding. |
|
pure virtual |
Writes the glyph associated with the glyphID to the given output stream.
outStream | The output stream |
glyphID | The glyph ID |
|
pure virtual |
Determines if the font already has a glyph with the given name.
glyphName | The glyph name |
|
pure virtual |
Determines if the font already has a glyph with the given glyph ID.
glyphID | The glyphID |
|
pure virtual |
Determines if the font already has a glyph with the given unicode codepoint.
codePoint | The unicode codepoint |
|
pure virtual |
Indicate existance of glyph ID in the font.
glyphID | The glyph ID |
|
pure virtual |
Returns an indicator of the existence of a font table with the given signature.
tableSignatureID | The ID of the opentype table |
|
pure virtual |
Indicate whether there are more items in the enumeration.
|
inline |
Check if the signature is greater than a given TableSignatureID
.
signature | The signature with which to compare |
|
inline |
Check if the signature is less than a given TableSignatureID
.
signature | The signature with which to compare |
|
pure virtual |
Get the next enumeration item.
|
pure virtual |
Clear the original PDF Font Encoding, if set.
void IDOMFontOpenType::Signature::set | ( | const char * | str | ) |
void IDOMFontOpenType::Signature::set | ( | eSignature | signature | ) |
signature |
|
inline |
Set the TableSignatureID
.
signature | The signature to set |
|
pure virtual |
Set or clear the CIDMap for the font. Valid only for TrueType fonts.
cidMap | The CID map to set. Ownership is taken by the font. |
|
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.
embedded | Set to true to flag the font for embedding |
|
pure virtual |
Sets the font source for this font.
fontSource | The new font source |
|
inline |
Construct a new Signature object.
|
inline |
Construct a new Signature object with a given string.
str | The signature |
|
inline |
Construct a new Signature object of a given signature type.
sSignature | The signature type |
|
inline |
Construct a new Signature object with a given TableSignatureID
.
signature |
|
inlinestatic |
Get a TableTableSignatureID
as a string.
signatureID | The signature ID |
|
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.
session | A pointer to the session. |
fontIndex | The index of the font - only used for TTC fonts. |
all | Whether to strip all instructions from the font, or only instructions found to be invalid (the default). |
|
pure virtual |
Copies the table to the given buffer.
buf | The destination buffer |
bufSize | Size of the destination buffer |
tableSignatureId | The ID of the opentype table |
|
pure virtual |
Writes the table to the given output stream @ param outStream The output stream.
tableSignatureID | The ID of the opentype table |
withPadding | Indicate whether the size includes 32 bit padding. |
|
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.
session | A pointer to the session. |
fontIndex | The index of the font - only used for TTC fonts. |
|
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.
filePath | The file path or a file template with six trailing X's (e.g "/tmp/fontdump-XXXXXX"). |
isTemplate | Indicates whether the "filePath" argument is to be treated as a path template instead of the intended path. |
|
pure virtual |
Write the converted OpenType font to stream (CFF style Opentype fonts are converted to TTF style).
outStream | The output stream. |
CCIDMapConstPtr IDOMFontOpenType::Data::cidMap |
bool IDOMFontOpenType::Data::embedded |
int32 IDOMFontOpenType::Data::flags |
JawsMako::IPDFDictionaryPtr IDOMType3Font::Data::fontDict |
uint32 IDOMFontOpenTypeTT::Data::fontIndex |
IDOMFontSourcePtr IDOMFont::Data::fontSource |
bool IDOMFontSourceFromStream::Data::fromPcl |
IDOMFontSourcePtr IDOMFontSourceObfuscationConverter::Data::inputFontSource |
The input font source for the converter.
IDOMFontSourcePtr IDOMFontSourceStreamFilter::Data::inputFontSource |
CEDLVector<uint16> IDOMFontOpenType::CCIDMap::mapping |
The mapping from CID to GlyphID for all CIDs reachable in the font
bool IDOMFontOpenType::Data::obfuscated |
eOperation IDOMFontSourceObfuscationConverter::Data::operation |
The obfuscation or deobfuscation operation.
EDLRawString IDOMFontOpenType::CCIDMap::ordering |
The name of the ordering, eg Japan1, Korea1, CNS1, GB1, etc
eOriginalFontType IDOMFontOpenType::Data::originalFontType |
CEDLSimpleBuffer IDOMFontOpenType::Data::originalOS2Table |
EDLRawString IDOMFontOpenType::Data::originalPdfEncoding |
CEDLSimpleBuffer IDOMFontOpenType::Data::panose |
bool IDOMFontOpenType::Data::pdfStandardFont |
IEDLClassFactory* IDOMType3Font::Data::pFactory |
bool IDOMFontOpenType::Data::psStandardFont |
EDLRawString IDOMFontOpenType::CCIDMap::registry |
The registry in which this CID ordering is registered
EDLRawString IDOMFontOpenType::Data::requestedFontName |
eFontSourceType IDOMFontSource::Data::sourceType |
IInputStreamPtr IDOMFontSourceFromStream::Data::stream |
uint64 IDOMFontSourceFromStream::Data::streamLength |
bool IDOMFontOpenType::Data::subsetted |
int32 IDOMFontOpenType::CCIDMap::supplement |
The supplement number of the character collection
IEDLTempStorePtr IDOMType3Font::Data::tempStore |
EDLSysString IDOMFontSourceFromStream::Data::uri |