Overview | Module | Use | Devguide | Index

Methods' Summary | Attributes' Summary | Methods' Details | Attributes' Details

:: com :: sun :: star :: rendering ::
unpublished | interface XCanvasFont |
Usage Restrictions not published Description This interface provides access to a specific, XCanvas-dependent font incarnation. This font is not universally usable, but belongs to the XCanvas it was queried from.

Methods' Summary
createTextLayout | Create a text layout interface.
getFontRequest | Query the FontRequest that was used to generate this object.
getFontMetrics | Query metric information about the font, that is generic to all its glyphs.
getAvailableSizes | Query the list of available font sizes.
getExtraFontProperties | Query the list of additional font properties.

Methods' Details
createTextLayout
XTextLayout
createTextLayout( | [in] StringContext | aText,
| [in] byte | nDirection,
| [in] hyper | nRandomSeed );
Description Create a text layout interface. Create a text layout interface for the given string, using this font to generate the glyphs from. Parameter aText The text to layout. Parameter nDirection Main text direction for the string specified. The main text direction is e.g. important for characters that are not strong, i.e. that change affinity according to the current writing direction. Make sure that across text portions and lines, the direction is set consistently. Parameter nRandomSeed Optional random seed for OpenType glyph variations.
getFontRequest
FontRequest
getFontRequest();
Description Query the FontRequest that was used to generate this object.
getFontMetrics
FontMetrics
getFontMetrics();
Description Query metric information about the font, that is generic to all its glyphs. Note that the metric values in the returned result are in the font coordinate system, i.e. relative to the corresponding size of this font. That is, when this font was created with a cell size of 20 units, the metrics returned are calculated relative to this size.
getAvailableSizes
sequence< double >
getAvailableSizes();
Description Query the list of available font sizes. This method queries the list of available font sizes (in device units) for this font. For scalable fonts that are not restricted to discrete sizes, this list is empty, meaning that every size is possible. Fonts that do restrict the device size to certain discrete values, setting an overall transformation that scales the FontRequest::CellSize to something not contained in the list returned by this method can lead to visible disturbances.
getExtraFontProperties
sequence< ::com::sun::star::beans::PropertyValue >
getExtraFontProperties();
Description Query the list of additional font properties.

Top of Page

Copyright © 2000, 2014 LibreOffice contributors and/or their affiliates. All rights reserved.

LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.

The Document Foundation acknowledges all community members, please find more info at our website.

Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.