1 /* $Id: fontmetrics.hg,v 1.2 2004/12/01 11:46:29 murrayc Exp $ */
5 * Copyright (C) 1998-1999 The gtkmm Development Team
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
17 * You should have received a copy of the GNU Library General Public
18 * License along with this library; if not, write to the Free
19 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #include <pango/pango-font.h>
29 /** A Pango::FontMetrics holds the overall metric information for a font (possibly restricted to a script).
33 _CLASS_BOXEDTYPE(FontMetrics, PangoFontMetrics, NONE, pango_font_metrics_ref, pango_font_metrics_unref)
34 _IGNORE(pango_font_metrics_unref, pango_font_metrics_ref)
36 _WRAP_METHOD(int get_ascent() const, pango_font_metrics_get_ascent)
37 _WRAP_METHOD(int get_descent() const, pango_font_metrics_get_descent)
38 _WRAP_METHOD(int get_approximate_char_width() const, pango_font_metrics_get_approximate_char_width)
39 _WRAP_METHOD(int get_approximate_digit_width() const, pango_font_metrics_get_approximate_digit_width)
41 _WRAP_METHOD(int get_underline_position() const, pango_font_metrics_get_underline_position)
42 _WRAP_METHOD(int get_underline_thickness() const, pango_font_metrics_get_underline_thickness)
43 _WRAP_METHOD(int get_strikethrough_position() const, pango_font_metrics_get_strikethrough_position)
44 _WRAP_METHOD(int get_strikethrough_thickness() const, pango_font_metrics_get_strikethrough_thickness)