LibreOffice
LibreOffice 24.2 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. More... | |
com::sun::star::awt::SimpleFontMetric | getFontMetric () |
returns additional information about the font. More... | |
short | getCharWidth ([in] char c) |
returns the width of the specified character. More... | |
sequence< short > | getCharWidths ([in] char nFirst, [in] char nLast) |
returns the widths of the specified characters. More... | |
long | getStringWidth ([in] string str) |
returns the string width. More... | |
long | getStringWidthArray ([in] string str, [out] sequence< long > aDXArray) |
returns the string and the character widths. More... | |
void | getKernPairs ([out] sequence< char > Chars1, [out] sequence< char > Chars2, [out] sequence< short > Kerns) |
queries the kerning pair table. More... | |
Public Member Functions inherited from XInterface | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. More... | |
void | acquire () |
increases the reference counter by one. More... | |
void | release () |
decreases the reference counter by one. More... | |
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. |