Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
pangofc-font.h
Go to the documentation of this file.
1/* Pango
2 * pangofc-font.h: Base fontmap type for fontconfig-based backends
3 *
4 * Copyright (C) 2003 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 __PANGO_FC_FONT_H__
23#define __PANGO_FC_FONT_H__
24
25#include <pango/pango-glyph.h>
26#include <pango/pango-font.h>
27#include <pango/pango-glyph.h>
28
29/* FreeType has undefined macros in its header */
30#ifdef PANGO_COMPILATION
31#pragma GCC diagnostic push
32#pragma GCC diagnostic ignored "-Wundef"
33#endif
34
35#include <ft2build.h>
36#include FT_FREETYPE_H
37#include <fontconfig/fontconfig.h>
38
39#ifdef PANGO_COMPILATION
40#pragma GCC diagnostic pop
41#endif
42
44
45#ifdef __GI_SCANNER__
46#define PANGO_FC_TYPE_FONT (pango_fc_font_get_type ())
47#define PANGO_FC_FONT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_FC_TYPE_FONT, PangoFcFont))
48#define PANGO_FC_IS_FONT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_FC_TYPE_FONT))
49#else
50#define PANGO_TYPE_FC_FONT (pango_fc_font_get_type ())
51#define PANGO_FC_FONT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FC_FONT, PangoFcFont))
52#define PANGO_IS_FC_FONT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FC_FONT))
53#endif
54
56typedef struct _PangoFcFontClass PangoFcFontClass;
57
58#ifndef PANGO_DISABLE_DEPRECATED
59
60/**
61 * PangoFcFont:
62 *
63 * `PangoFcFont` is a base class for font implementations
64 * using the Fontconfig and FreeType libraries.
65 *
66 * It is used in onjunction with [class@PangoFc.FontMap].
67 * When deriving from this class, you need to implement all
68 * of its virtual functions other than shutdown() along with
69 * the get_glyph_extents() virtual function from `PangoFont`.
70 */
72{
74
75 FcPattern *font_pattern; /* fully resolved pattern */
76 PangoFontMap *fontmap; /* associated map (no strong reference is held,
77 * but a g_object_add_weak_pointer() guards it) */
78 gpointer priv; /* used internally */
79 PangoMatrix matrix; /* unused */
81
83
86};
87
88#endif /* PANGO_DISABLE_DEPRECATED */
89
92
95 gunichar wc);
98 gunichar wc);
99
100PANGO_DEPRECATED_IN_1_50_FOR(pango_font_get_language)
103
106
109 gunichar wc);
112 PangoGlyphString *glyphs);
113
118
119
121#endif /* __PANGO_FC_FONT_H__ */
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
typedefG_BEGIN_DECLS struct _GSList GSList
Definition gslist.h:39
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
void * gpointer
Definition gtypes.h:109
unsigned int guint
Definition gtypes.h:61
G_BEGIN_DECLS typedef guint32 gunichar
Definition gunicode.h:61
PANGO_AVAILABLE_IN_1_44 hb_font_t * pango_font_get_hb_font(PangoFont *font)
typedefG_BEGIN_DECLS struct _PangoFontDescription PangoFontDescription
Definition pango-font.h:43
#define PANGO_GET_UNKNOWN_GLYPH(wc)
Definition pango-font.h:683
typedefG_BEGIN_DECLS struct _PangoMatrix PangoMatrix
struct _PangoLanguage PangoLanguage
Definition pango-types.h:46
guint32 PangoGlyph
Definition pango-types.h:54
#define PANGO_DEPRECATED_IN_1_44
#define PANGO_DEPRECATED_IN_1_32
#define PANGO_DEPRECATED_IN_1_50_FOR(f)
#define PANGO_DEPRECATED_IN_1_44_FOR(f)
#define PANGO_AVAILABLE_IN_1_48
#define PANGO_AVAILABLE_IN_1_4
#define PANGO_DEPRECATED_FOR(f)
#define PANGO_AVAILABLE_IN_ALL
PangoGlyph pango_fc_font_get_unknown_glyph(PangoFcFont *font, gunichar wc)
void pango_fc_font_unlock_face(PangoFcFont *font)
struct _PangoFcFontClass PangoFcFontClass
FT_Face pango_fc_font_lock_face(PangoFcFont *font)
PANGO_DEPRECATED_IN_1_32 void pango_fc_font_kern_glyphs(PangoFcFont *font, PangoGlyphString *glyphs)
PANGO_AVAILABLE_IN_1_4 guint pango_fc_font_get_glyph(PangoFcFont *font, gunichar wc)
PANGO_AVAILABLE_IN_ALL GType pango_fc_font_get_type(void) G_GNUC_CONST
PangoLanguage ** pango_fc_font_get_languages(PangoFcFont *font)
PANGO_AVAILABLE_IN_1_48 FcPattern * pango_fc_font_get_pattern(PangoFcFont *font)
PANGO_DEPRECATED_IN_1_44 gboolean pango_fc_font_has_char(PangoFcFont *font, gunichar wc)
GSList * metrics_by_lang
guint is_transformed
PangoFontDescription * description
FcPattern * font_pattern
gpointer priv
PangoMatrix matrix
PangoFont parent_instance
PangoFontMap * fontmap