1 /* Pango 2 * pangox-private.h: 3 * 4 * Copyright (C) 2000 Red Hat Software 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Library General Public 8 * License as published by the Free Software Foundation; either 9 * version 2 of the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Library General Public License for more details. 15 * 16 * You should have received a copy of the GNU Library General Public 17 * License along with this library; if not, write to the 18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 19 * Boston, MA 02111-1307, USA. 20 */ 21 22 #ifndef __PANGOXFT_PRIVATE_H__ 23 #define __PANGOXFT_PRIVATE_H__ 24 25 #include <pango/pangoxft.h> 26 #include <pango/pangofc-font-private.h> 27 #include <pango/pango-renderer.h> 28 29 G_BEGIN_DECLS 30 31 struct _PangoXftFont 32 { 33 PangoFcFont parent_instance; 34 35 XftFont *xft_font; /* created on demand */ 36 PangoFont *mini_font; /* font used to display missing glyphs */ 37 38 guint mini_width; /* metrics for missing glyph drawing */ 39 guint mini_height; 40 guint mini_pad; 41 42 GHashTable *glyph_info; /* Used only when we can't get 43 * glyph extents out of Xft because 44 * we have a transformation in effect 45 */ 46 }; 47 48 PangoXftFont *_pango_xft_font_new (PangoXftFontMap *xftfontmap, 49 FcPattern *pattern); 50 51 void _pango_xft_font_map_get_info (PangoFontMap *fontmap, 52 Display **display, 53 int *screen); 54 55 PangoRenderer *_pango_xft_font_map_get_renderer (PangoXftFontMap *xftfontmap); 56 57 PangoFont *_pango_xft_font_get_mini_font (PangoXftFont *xfont); 58 59 G_END_DECLS 60 61 #endif /* __PANGOXFT_PRIVATE_H__ */ 62