InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IFontMetricsTableList Class Referenceabstract

#include <IFontMetricsTableList.h>

Inheritance diagram for IFontMetricsTableList:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IFONTMETRICSTABLELIST }
 

Public Member Functions

virtual IFontMetricsTableQueryFontMetricsTable (const IPMFont *font, bool16 createIfNew)=0
 
virtual void ClearFontMetricsTable (const IPMFont *font)=0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

In the Japanese version of InDesign a feature called "Tsume" is available. This feature removes a percentage of the whitespace from either side of a glyph. It works by getting the exact ink bounding box of a particular glyph and comparing that with the pen-advance. Because this data is completely unavailable when the font is missing, we store the values, as they are used, in this table. Each font that has been used with Tsume has its own table. These tables are available from the IFontMetricTableList.

See Also
IFontMetricsTable

Member Function Documentation

virtual void IFontMetricsTableList::ClearFontMetricsTable (const IPMFontfont)
pure virtual

Clear the table for a particular font. Only called by the Composite Font Manager at this time.

Parameters
fontis the font whose table is to be cleared.
virtual IFontMetricsTable* IFontMetricsTableList::QueryFontMetricsTable (const IPMFontfont,
bool16 createIfNew 
)
pure virtual

return a IFontMetricsTable for a particular font.

Parameters
fontspecifies which font you want to get side-bearings for.
createIfNewspecifies if you want "nil" returned if the table doesn't already exist. otherwise, it will create an empty table.
Returns
a AddRef'd IFontMetricsTable interface for the font.