interface XFont in module com::sun::star::awt::

(Global Index)

Syntax

interface XFont : com::sun::star::uno::XInterface ;

Description

decribes a font on a specific device.

All values are in pixels within this device.

Method Summary

getFontDescriptor

getFontMetric

getCharWidth

getCharWidths

getStringWidth

getStringWidthArray

getKernPairs queries the kerning pair table.

Method Details



getFontDescriptor

Syntax

com::sun::star::awt::FontDescriptor getFontDescriptor ();

Returns

the description of the font.

The unit of measurement is pixels for the device.


getFontMetric

Syntax

com::sun::star::awt::SimpleFontMetric getFontMetric ();

Returns

additional information about the font.

getCharWidth

Syntax

short getCharWidth (
char c );

Returns

the width of the specified character measured in pixels for the device.

getCharWidths

Syntax

sequence< short > getCharWidths (
char nFirst,
char nLast );

Returns

a sequence of the widths of subsequent characters for this font.

getStringWidth

Syntax

long getStringWidth (
string str );

Returns

the width of the specified string of characters measured in pixels for the device.

getStringWidthArray

Syntax

long getStringWidthArray (
string str,
sequence< long > aDXArray );

Returns

the width of the specified string of characters measured in pixels for the device.

Parameter aDXArray

receives the width of every single character measured in pixels for the device.

getKernPairs

Syntax

void getKernPairs (
sequence< char > Chars1,
sequence< char > Chars2,
sequence< short > Kerns );

Description

queries the kerning pair table.

Top of Page