Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / awt / SimpleFontMetric.idl
blob90e999bf17f4be03653bb8c9b0f315ae9e4f2c47
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: SimpleFontMetric.idl,v $
10 * $Revision: 1.11 $
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_SimpleFontMetric_idl__
31 #define __com_sun_star_awt_SimpleFontMetric_idl__
34 //=============================================================================
36 module com { module sun { module star { module awt {
38 //=============================================================================
40 /** describes the general metrics of a certain font.
42 published struct SimpleFontMetric
44 /** specifies the portion of a lower case character that
45 rises above the height of the character "x" of the font.
47 <p>For example, the letters 'b', 'd', 'h', 'k' and 'l'
48 have an ascent unequal to 0.</p>
50 <p>The ascent is measured in pixels, thus the font metric is
51 device dependent.</p>
53 short Ascent;
55 //-------------------------------------------------------------------------
57 /** specifies the portion of a letter falling below the baseline.
59 <p>For example, the letters 'g', 'p', and 'y'
60 have a descent unequal to 0.</p>
62 <p>The descent is measured in pixels, thus the font metric is
63 device dependent.</p>
65 short Descent;
67 //-------------------------------------------------------------------------
69 /** specifies the vertical space between lines of this font;
70 it is also called internal linespacing.
72 <p>The leading is measured in pixels, thus the font metric is
73 device dependent.</p>
75 short Leading;
77 //-------------------------------------------------------------------------
79 /** specifies the slant of the characters (italic).
81 <p>The slant is measured in degrees from 0 to 359.</p>
83 short Slant;
85 //-------------------------------------------------------------------------
87 /** specifies the code of the first printable character in the font.
89 char FirstChar;
91 //-------------------------------------------------------------------------
93 /** specifies the code of the last printable character in the font.
95 char LastChar;
97 };
99 //=============================================================================
101 }; }; }; };
104 #endif