1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: FontDescriptor.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_awt_FontDescriptor_idl__
31 #define __com_sun_star_awt_FontDescriptor_idl__
33 #ifndef __com_sun_star_awt_FontSlant_idl__
34 #include
<com
/sun
/star
/awt
/FontSlant.idl
>
38 //=============================================================================
40 module com
{ module sun
{ module star
{ module awt
{
42 //=============================================================================
44 /** describes the characteristics of a font.
46 <p>For example, this can be used to select a font.</p>
48 published
struct FontDescriptor
50 //-------------------------------------------------------------------------
52 /** specifies the exact name of the font.
56 //-------------------------------------------------------------------------
58 /** specifies the height of the font in the measure of the
63 //-------------------------------------------------------------------------
65 /** specifies the width of the font in the measure of the
70 //-------------------------------------------------------------------------
72 /** specifies the style name of the font.
76 //-------------------------------------------------------------------------
78 /** specifies the general style of the font.
80 <p>Use one value out of the constant group
81 <type scope="com::sun::star::awt">FontFamily</type>.</p>
85 //-------------------------------------------------------------------------
87 /** specifies the character set which is supported by the font.
89 <p>Use one value out of the constant group
90 <type scope="com::sun::star::awt">CharSet</type>.</p>
94 //-------------------------------------------------------------------------
96 /** specifies the pitch of the font.
98 <p>Use one value out of the constant group
99 <type scope="com::sun::star::awt">FontPitch</type>.</p>
103 //-------------------------------------------------------------------------
105 /** specifies the character width.
107 <p>Depending on the specified width, a font that supports this
108 width may be selected.</p>
110 <p>The value is expressed as a percentage.</p>
112 float CharacterWidth
;
114 //-------------------------------------------------------------------------
116 /** specifies the thickness of the line.
118 <p>Depending on the specified weight, a font that supports this
119 thickness may be selected.</p>
121 <p>The value is expressed as a percentage.</p>
125 //-------------------------------------------------------------------------
127 /** specifies the slant of the font.
129 com
::sun
::star
::awt
::FontSlant Slant
;
131 //-------------------------------------------------------------------------
133 /** specifies the kind of underlining.
135 <p>Use one value out of the constant group
136 <type scope="com::sun::star::awt">FontUnderline</type>.</p>
140 //-------------------------------------------------------------------------
142 /** specifies the kind of strikeout.
144 <p>Use one value out of the constant group
145 <type scope="com::sun::star::awt">FontStrikeout</type>.</p>
149 //-------------------------------------------------------------------------
151 /** specifies the rotation of the font.
153 <p>The unit of measure is degrees; 0 is the baseline.</p>
157 //-------------------------------------------------------------------------
159 /** For requesting, it specifies if there is a kerning table available.
160 For selecting, it specifies if the kerning table is to be used.
164 //-------------------------------------------------------------------------
166 /** specifies if only words get underlined.
168 <p><TRUE/> means that only non-space characters get underlined,
169 <FALSE/> means that the spacing also gets underlined.</p>
171 <p>This property is only valid if the property
172 <member scope="com::sun::star::awt">FontDescriptor::Underline</member>
173 is not <const>FontUnderline::NONE</const>.</p>
175 boolean WordLineMode
;
177 //-------------------------------------------------------------------------
179 /** specifies the technology of the font representation.
181 <p>One or more values out of the constant group
182 <type scope="com::sun::star::awt">FontType</type> can be combined by
183 an arithmetical or-operation.</p>
189 //=============================================================================