~ubuntu-branches/ubuntu/natty/pangomm/natty

« back to all changes in this revision

Viewing changes to pango/pangomm/font.h

  • Committer: Bazaar Package Importer
  • Author(s): Deng Xiyue
  • Date: 2009-04-03 00:35:01 UTC
  • mfrom: (5.1.2 jaunty)
  • Revision ID: james.westby@ubuntu.com-20090403003501-y05hsap2s021a2rr
Tags: 2.24.0-2
* Upload to unstable.
  + Drop check-dist.mk.
  + Track unstable branch in Vcs-*.
* Change -dbg package to section debug.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 * Copyright (C) 1998-1999 The gtkmm Development Team 
14
14
 *
15
15
 * This library is free software; you can redistribute it and/or
16
 
 * modify it under the terms of the GNU Library General Public
 
16
 * modify it under the terms of the GNU Lesser General Public
17
17
 * License as published by the Free Software Foundation; either
18
 
 * version 2 of the License, or (at your option) any later version.
 
18
 * version 2.1 of the License, or (at your option) any later version.
19
19
 *
20
20
 * This library is distributed in the hope that it will be useful,
21
21
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
22
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
23
 
 * Library General Public License for more details.
 
23
 * Lesser General Public License for more details.
24
24
 *
25
 
 * You should have received a copy of the GNU Library General Public
 
25
 * You should have received a copy of the GNU Lesser General Public
26
26
 * License along with this library; if not, write to the Free
27
27
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28
28
 */
163
163
 
164
164
  
165
165
  /** Gets the font map for which the font was created.
 
166
   * 
 
167
   * Note that the font maintains a <firstterm>weak</firstterm> reference
 
168
   * to the font map, so if all references to font map are dropped, the font
 
169
   * map will be finalized even if there are fonts created with the font
 
170
   * map that are still alive.  In that case this function will return <tt>0</tt>.
 
171
   * It is the responsibility of the user to ensure that the font map is kept
 
172
   * alive.  In most uses this is not an issue as a Pango::Context holds
 
173
   * a reference to the font map.
166
174
   * @return The Pango::FontMap for the font, or <tt>0</tt> if @a font is <tt>0</tt>.
167
175
   * 
168
176
   * Since: 1.10.
170
178
  Glib::RefPtr<FontMap> get_font_map();
171
179
  
172
180
  /** Gets the font map for which the font was created.
 
181
   * 
 
182
   * Note that the font maintains a <firstterm>weak</firstterm> reference
 
183
   * to the font map, so if all references to font map are dropped, the font
 
184
   * map will be finalized even if there are fonts created with the font
 
185
   * map that are still alive.  In that case this function will return <tt>0</tt>.
 
186
   * It is the responsibility of the user to ensure that the font map is kept
 
187
   * alive.  In most uses this is not an issue as a Pango::Context holds
 
188
   * a reference to the font map.
173
189
   * @return The Pango::FontMap for the font, or <tt>0</tt> if @a font is <tt>0</tt>.
174
190
   * 
175
191
   * Since: 1.10.