1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23#ifndef __com_sun_star_awt_SimpleFontMetric_idl__ 24#define __com_sun_star_awt_SimpleFontMetric_idl__ 25 26 27//============================================================================= 28 29 module com { module sun { module star { module awt { 30 31//============================================================================= 32 33/** describes the general metrics of a certain font. 34 */ 35published struct SimpleFontMetric 36{ 37 /** specifies the portion of a lower case character that 38 rises above the height of the character "x" of the font. 39 40 <p>For example, the letters 'b', 'd', 'h', 'k' and 'l' 41 have an ascent unequal to 0.</p> 42 43 <p>The ascent is measured in pixels, thus the font metric is 44 device dependent.</p> 45 */ 46 short Ascent; 47 48 //------------------------------------------------------------------------- 49 50 /** specifies the portion of a letter falling below the baseline. 51 52 <p>For example, the letters 'g', 'p', and 'y' 53 have a descent unequal to 0.</p> 54 55 <p>The descent is measured in pixels, thus the font metric is 56 device dependent.</p> 57 */ 58 short Descent; 59 60 //------------------------------------------------------------------------- 61 62 /** specifies the vertical space between lines of this font; 63 it is also called internal linespacing. 64 65 <p>The leading is measured in pixels, thus the font metric is 66 device dependent.</p> 67 */ 68 short Leading; 69 70 //------------------------------------------------------------------------- 71 72 /** specifies the slant of the characters (italic). 73 74 <p>The slant is measured in degrees from 0 to 359.</p> 75 */ 76 short Slant; 77 78 //------------------------------------------------------------------------- 79 80 /** specifies the code of the first printable character in the font. 81 */ 82 char FirstChar; 83 84 //------------------------------------------------------------------------- 85 86 /** specifies the code of the last printable character in the font. 87 */ 88 char LastChar; 89 90}; 91 92//============================================================================= 93 94}; }; }; }; 95 96 97#endif 98