| LibreOffice
    LibreOffice 24.8 SDK API Reference | 
describes a font on a specific device. More...
import "XFont.idl";
 
  
| Public Member Functions | |
| com::sun::star::awt::FontDescriptor | getFontDescriptor () | 
| returns the description of the font. | |
| com::sun::star::awt::SimpleFontMetric | getFontMetric () | 
| returns additional information about the font. | |
| short | getCharWidth ([in] char c) | 
| returns the width of the specified character. | |
| sequence< short > | getCharWidths ([in] char nFirst, [in] char nLast) | 
| returns the widths of the specified characters. | |
| long | getStringWidth ([in] string str) | 
| returns the string width. | |
| long | getStringWidthArray ([in] string str, [out] sequence< long > aDXArray) | 
| returns the string and the character widths. | |
| void | getKernPairs ([out] sequence< char > Chars1, [out] sequence< char > Chars2, [out] sequence< short > Kerns) | 
| queries the kerning pair table. | |
| Public Member Functions inherited from XInterface | |
| any | queryInterface ([in] type aType) | 
| queries for a new interface to an existing UNO object. | |
| void | acquire () | 
| increases the reference counter by one. | |
| void | release () | 
| decreases the reference counter by one. | |
describes a font on a specific device.
All values are in pixels within this device.
| short getCharWidth | ( | [in] char | c | ) | 
returns the width of the specified character.
| sequence< short > getCharWidths | ( | [in] char | nFirst, | 
| [in] char | nLast ) | 
returns the widths of the specified characters.
| com::sun::star::awt::FontDescriptor getFontDescriptor | ( | ) | 
returns the description of the font.
The unit of measurement is pixels for the device.
| com::sun::star::awt::SimpleFontMetric getFontMetric | ( | ) | 
returns additional information about the font.
| void getKernPairs | ( | [out] sequence< char > | Chars1, | 
| [out] sequence< char > | Chars2, | ||
| [out] sequence< short > | Kerns ) | 
queries the kerning pair table.
| long getStringWidth | ( | [in] string | str | ) | 
returns the string width.
| long getStringWidthArray | ( | [in] string | str, | 
| [out] sequence< long > | aDXArray ) | 
returns the string and the character widths.
| str | the input string. | 
| aDXArray | receives the width of every single character measured in pixels for the device. |