Top   Module   Use   Manual   Index 
 EXPORTING SERVICES | METHODS' SUMMARY | METHODS' DETAILS 

com :: sun :: star :: awt ::

interface XFont

Base Interface
com::sun::star::uno::XInterface

Description
decribes a font on a specific device.

All values are in pixels within this device.



Methods' Summary

getFontDescriptor
getFontMetric
getCharWidth
getCharWidths
getStringWidth
getStringWidthArray
getKernPairs queries the kerning pair table.

Methods' Details

getFontDescriptor
 
com::sun::star::awt::FontDescriptor
getFontDescriptor();
Returns
the description of the font.

The unit of measurement is pixels for the device.

getFontMetric
 
com::sun::star::awt::SimpleFontMetric
getFontMetric();
Returns
additional information about the font.
getCharWidth
 
short
getCharWidth(
[ in ] char c );

Returns
the width of the specified character measured in pixels for the device.
getCharWidths
 
sequence< short >
getCharWidths(
[ in ] char nFirst,
[ in ] char nLast );

Returns
a sequence of the widths of subsequent characters for this font.
getStringWidth
 
long
getStringWidth(
[ in ] string str );

Returns
the width of the specified string of characters measured in pixels for the device.
getStringWidthArray
 
long
getStringWidthArray(
[ in ] string str,
[ out ] 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
 
void
getKernPairs(
[ out ] sequence< char > Chars1,
[ out ] sequence< char > Chars2,
[ out ] sequence< short > Kerns );

Description
queries the kerning pair table.

Top of Page