![]() | InDesign SDK 20.5 |
#include <IFontMetricsTable.h>

Public Types | |
| enum | { kDefaultIID = IID_IFONTMETRICSTABLE } |
Public Member Functions | |
| virtual bool16 | GetTsumeHorizontal (const PMMatrix &matrix, Text::GlyphID glyph, PMReal *before, PMReal *after)=0 |
| virtual bool16 | GetTsumeVertical (const PMMatrix &matrix, Text::GlyphID glyph, PMReal *above, PMReal *below)=0 |
| virtual void | ClearTable ()=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
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.
| pure virtual |
Clear the table of saved side-bearings for this font. This function is generally only called by IFontMetricsTableList::ClearFontMetricsTable which is called by the composite font system.
| pure virtual |
For a glyphID at a particular size, get the amount of white space before & after the actual ink bounds in the horizontal direction.
| matrix | specifies the character matrix being considered. Only the 2x2 matrix is used. |
| glyph | is the glyphID of requested. |
| before | RETURNS the amount of whitespace before the glyph. Can be nil. |
| after | RETURNS the amount of whitespace after the glyph. Can be nil. |
| pure virtual |
For a glyphID at a particular size, get the amount of white space above & below the actual ink bounds in the vertical direction.
| matrix | specifies the character matrix being considered. Only the 2x2 matrix is used. |
| glyph | is the glyphID of requested. |
| above | RETURNS the amount of whitespace above the glyph. Can be nil. |
| below | RETURNS the amount of whitespace below the glyph. Can be nil. |