xref: /trunk/main/offapi/com/sun/star/awt/FontDescriptor.idl (revision ffd38472365e95f6a578737bc9a5eb0fac624a86)
1*d1766043SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*d1766043SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*d1766043SAndrew Rist * distributed with this work for additional information
6*d1766043SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*d1766043SAndrew Rist * "License"); you may not use this file except in compliance
9*d1766043SAndrew Rist * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir *
11*d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
13*d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*d1766043SAndrew Rist * software distributed under the License is distributed on an
15*d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*d1766043SAndrew Rist * KIND, either express or implied.  See the License for the
17*d1766043SAndrew Rist * specific language governing permissions and limitations
18*d1766043SAndrew Rist * under the License.
19cdf0e10cSrcweir *
20*d1766043SAndrew Rist *************************************************************/
21*d1766043SAndrew Rist
22*d1766043SAndrew Rist
23cdf0e10cSrcweir#ifndef __com_sun_star_awt_FontDescriptor_idl__
24cdf0e10cSrcweir#define __com_sun_star_awt_FontDescriptor_idl__
25cdf0e10cSrcweir
26cdf0e10cSrcweir#ifndef __com_sun_star_awt_FontSlant_idl__
27cdf0e10cSrcweir#include <com/sun/star/awt/FontSlant.idl>
28cdf0e10cSrcweir#endif
29cdf0e10cSrcweir
30cdf0e10cSrcweir
31cdf0e10cSrcweir//=============================================================================
32cdf0e10cSrcweir
33cdf0e10cSrcweir module com {  module sun {  module star {  module awt {
34cdf0e10cSrcweir
35cdf0e10cSrcweir//=============================================================================
36cdf0e10cSrcweir
37cdf0e10cSrcweir/** describes the characteristics of a font.
38cdf0e10cSrcweir
39cdf0e10cSrcweir    <p>For example, this can be used to select a font.</p>
40cdf0e10cSrcweir */
41cdf0e10cSrcweirpublished struct FontDescriptor
42cdf0e10cSrcweir{
43cdf0e10cSrcweir    //-------------------------------------------------------------------------
44cdf0e10cSrcweir
45cdf0e10cSrcweir    /** specifies the exact name of the font.
46cdf0e10cSrcweir     */
47cdf0e10cSrcweir    string Name;
48cdf0e10cSrcweir
49cdf0e10cSrcweir    //-------------------------------------------------------------------------
50cdf0e10cSrcweir
51cdf0e10cSrcweir    /** specifies the height of the font in the measure of the
52cdf0e10cSrcweir        destination.
53cdf0e10cSrcweir     */
54cdf0e10cSrcweir    short Height;
55cdf0e10cSrcweir
56cdf0e10cSrcweir    //-------------------------------------------------------------------------
57cdf0e10cSrcweir
58cdf0e10cSrcweir    /** specifies the width of the font in the measure of the
59cdf0e10cSrcweir        destination.
60cdf0e10cSrcweir     */
61cdf0e10cSrcweir    short Width;
62cdf0e10cSrcweir
63cdf0e10cSrcweir    //-------------------------------------------------------------------------
64cdf0e10cSrcweir
65cdf0e10cSrcweir    /** specifies the style name of the font.
66cdf0e10cSrcweir     */
67cdf0e10cSrcweir    string StyleName;
68cdf0e10cSrcweir
69cdf0e10cSrcweir    //-------------------------------------------------------------------------
70cdf0e10cSrcweir
71cdf0e10cSrcweir    /** specifies the general style of the font.
72cdf0e10cSrcweir
73cdf0e10cSrcweir        <p>Use one value out of the constant group
74cdf0e10cSrcweir        <type scope="com::sun::star::awt">FontFamily</type>.</p>
75cdf0e10cSrcweir     */
76cdf0e10cSrcweir    short Family;
77cdf0e10cSrcweir
78cdf0e10cSrcweir    //-------------------------------------------------------------------------
79cdf0e10cSrcweir
80cdf0e10cSrcweir    /** specifies the character set which is supported by the font.
81cdf0e10cSrcweir
82cdf0e10cSrcweir        <p>Use one value out of the constant group
83cdf0e10cSrcweir        <type scope="com::sun::star::awt">CharSet</type>.</p>
84cdf0e10cSrcweir     */
85cdf0e10cSrcweir    short CharSet;
86cdf0e10cSrcweir
87cdf0e10cSrcweir    //-------------------------------------------------------------------------
88cdf0e10cSrcweir
89cdf0e10cSrcweir    /** specifies the pitch of the font.
90cdf0e10cSrcweir
91cdf0e10cSrcweir        <p>Use one value out of the constant group
92cdf0e10cSrcweir        <type scope="com::sun::star::awt">FontPitch</type>.</p>
93cdf0e10cSrcweir     */
94cdf0e10cSrcweir    short Pitch;
95cdf0e10cSrcweir
96cdf0e10cSrcweir    //-------------------------------------------------------------------------
97cdf0e10cSrcweir
98cdf0e10cSrcweir    /** specifies the character width.
99cdf0e10cSrcweir
100cdf0e10cSrcweir        <p>Depending on the specified width, a font that supports this
101cdf0e10cSrcweir        width may be selected.</p>
102cdf0e10cSrcweir
103cdf0e10cSrcweir        <p>The value is expressed as a percentage.</p>
104cdf0e10cSrcweir     */
105cdf0e10cSrcweir    float CharacterWidth;
106cdf0e10cSrcweir
107cdf0e10cSrcweir    //-------------------------------------------------------------------------
108cdf0e10cSrcweir
109cdf0e10cSrcweir    /** specifies the thickness of the line.
110cdf0e10cSrcweir
111cdf0e10cSrcweir        <p>Depending on the specified weight, a font that supports this
112cdf0e10cSrcweir        thickness may be selected.</p>
113cdf0e10cSrcweir
114cdf0e10cSrcweir        <p>The value is expressed as a percentage.</p>
115cdf0e10cSrcweir     */
116cdf0e10cSrcweir    float Weight;
117cdf0e10cSrcweir
118cdf0e10cSrcweir    //-------------------------------------------------------------------------
119cdf0e10cSrcweir
120cdf0e10cSrcweir    /** specifies the slant of the font.
121cdf0e10cSrcweir     */
122cdf0e10cSrcweir    com::sun::star::awt::FontSlant Slant;
123cdf0e10cSrcweir
124cdf0e10cSrcweir    //-------------------------------------------------------------------------
125cdf0e10cSrcweir
126cdf0e10cSrcweir    /** specifies the kind of underlining.
127cdf0e10cSrcweir
128cdf0e10cSrcweir        <p>Use one value out of the constant group
129cdf0e10cSrcweir        <type scope="com::sun::star::awt">FontUnderline</type>.</p>
130cdf0e10cSrcweir     */
131cdf0e10cSrcweir    short Underline;
132cdf0e10cSrcweir
133cdf0e10cSrcweir    //-------------------------------------------------------------------------
134cdf0e10cSrcweir
135cdf0e10cSrcweir    /** specifies the kind of strikeout.
136cdf0e10cSrcweir
137cdf0e10cSrcweir        <p>Use one value out of the constant group
138cdf0e10cSrcweir        <type scope="com::sun::star::awt">FontStrikeout</type>.</p>
139cdf0e10cSrcweir     */
140cdf0e10cSrcweir    short Strikeout;
141cdf0e10cSrcweir
142cdf0e10cSrcweir    //-------------------------------------------------------------------------
143cdf0e10cSrcweir
144cdf0e10cSrcweir    /** specifies the rotation of the font.
145cdf0e10cSrcweir
146cdf0e10cSrcweir        <p>The unit of measure is degrees; 0 is the baseline.</p>
147cdf0e10cSrcweir     */
148cdf0e10cSrcweir    float Orientation;
149cdf0e10cSrcweir
150cdf0e10cSrcweir    //-------------------------------------------------------------------------
151cdf0e10cSrcweir
152cdf0e10cSrcweir    /** For requesting, it specifies if there is a kerning table available.
153cdf0e10cSrcweir        For selecting, it specifies if the kerning table is to be used.
154cdf0e10cSrcweir     */
155cdf0e10cSrcweir    boolean Kerning;
156cdf0e10cSrcweir
157cdf0e10cSrcweir    //-------------------------------------------------------------------------
158cdf0e10cSrcweir
159cdf0e10cSrcweir    /** specifies if only words get underlined.
160cdf0e10cSrcweir
161cdf0e10cSrcweir        <p><TRUE/> means that only non-space characters get underlined,
162cdf0e10cSrcweir        <FALSE/> means that the spacing also gets underlined.</p>
163cdf0e10cSrcweir
164cdf0e10cSrcweir        <p>This property is only valid if the property
165cdf0e10cSrcweir        <member scope="com::sun::star::awt">FontDescriptor::Underline</member>
166cdf0e10cSrcweir        is not <const>FontUnderline::NONE</const>.</p>
167cdf0e10cSrcweir     */
168cdf0e10cSrcweir    boolean WordLineMode;
169cdf0e10cSrcweir
170cdf0e10cSrcweir    //-------------------------------------------------------------------------
171cdf0e10cSrcweir
172cdf0e10cSrcweir    /** specifies the technology of the font representation.
173cdf0e10cSrcweir
174cdf0e10cSrcweir        <p>One or more values out of the constant group
175cdf0e10cSrcweir        <type scope="com::sun::star::awt">FontType</type> can be combined by
176cdf0e10cSrcweir        an arithmetical or-operation.</p>
177cdf0e10cSrcweir     */
178cdf0e10cSrcweir    short Type;
179cdf0e10cSrcweir
180cdf0e10cSrcweir};
181cdf0e10cSrcweir
182cdf0e10cSrcweir//=============================================================================
183cdf0e10cSrcweir
184cdf0e10cSrcweir}; }; }; };
185cdf0e10cSrcweir
186cdf0e10cSrcweir#endif
187