:: com :: sun :: star :: rendering ::

struct FontMetrics

Elements' Summary
Ascent Ascent (above the baseline) part of the font. 
Descent Descent (below the baseline) part of the font. 
InternalLeading Extra space above ascent 
ExternalLeading Extra space outside the font cells. 
ReferenceCharSize This value specifies the reference character width of the font. 
UnderlineOffset Specifies the offset to be added to the baseline when drawing underlined text.  
StrikeThroughOffset Specifies the offset to be added to the baseline when striking through the text.  
Elements' Details
Ascent
double Ascent;
Description
Ascent (above the baseline) part of the font.
Descent
double Descent;
Description
Descent (below the baseline) part of the font.
InternalLeading
double InternalLeading;
Description
Extra space above ascent
ExternalLeading
double ExternalLeading;
Description
Extra space outside the font cells.

It should not contain ink marks and is typically used by the font designer to modify the line distance.

ReferenceCharSize
double ReferenceCharSize;
Description
This value specifies the reference character width of the font.

It's roughly equivalent to the average width of all characters, and if one needs a font with double character width, the referenceCharSize should be doubled.

UnderlineOffset
double UnderlineOffset;
Description
Specifies the offset to be added to the baseline when drawing underlined text.
StrikeThroughOffset
double StrikeThroughOffset;
Description
Specifies the offset to be added to the baseline when striking through the text.
Top of Page