1/* Pango
2 * pango-engine.c: Engines for script and language specific processing
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#include "config.h"
23
24#include "pango-engine.h"
25#include "pango-impl-utils.h"
26
27
28G_DEFINE_ABSTRACT_TYPE (PangoEngine, pango_engine, G_TYPE_OBJECT);
29
30static void
31pango_engine_init (PangoEngine *self)
32{
33}
34
35static void
36pango_engine_class_init (PangoEngineClass *klass)
37{
38}
39
40G_GNUC_BEGIN_IGNORE_DEPRECATIONS
41G_DEFINE_ABSTRACT_TYPE (PangoEngineLang, pango_engine_lang, PANGO_TYPE_ENGINE);
42G_GNUC_END_IGNORE_DEPRECATIONS
43
44static void
45pango_engine_lang_init (PangoEngineLang *self)
46{
47}
48
49static void
50pango_engine_lang_class_init (PangoEngineLangClass *klass)
51{
52}
53
54
55static PangoCoverageLevel
56pango_engine_shape_real_covers (PangoEngineShape *engine G_GNUC_UNUSED,
57 PangoFont *font,
58 PangoLanguage *language,
59 gunichar wc)
60{
61 PangoCoverage *coverage = pango_font_get_coverage (font, language);
62 PangoCoverageLevel result = pango_coverage_get (coverage, index_: wc);
63
64 g_object_unref (object: coverage);
65
66 return result;
67}
68
69G_GNUC_BEGIN_IGNORE_DEPRECATIONS
70G_DEFINE_ABSTRACT_TYPE (PangoEngineShape, pango_engine_shape, PANGO_TYPE_ENGINE);
71G_GNUC_END_IGNORE_DEPRECATIONS
72
73static void
74pango_engine_shape_init (PangoEngineShape *klass)
75{
76}
77
78static void
79pango_engine_shape_class_init (PangoEngineShapeClass *class)
80{
81 class->covers = pango_engine_shape_real_covers;
82}
83

source code of gtk/subprojects/pango/pango/pango-engine.c