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 | |
28 | G_DEFINE_ABSTRACT_TYPE (PangoEngine, pango_engine, G_TYPE_OBJECT); |
29 | |
30 | static void |
31 | pango_engine_init (PangoEngine *self) |
32 | { |
33 | } |
34 | |
35 | static void |
36 | pango_engine_class_init (PangoEngineClass *klass) |
37 | { |
38 | } |
39 | |
40 | G_GNUC_BEGIN_IGNORE_DEPRECATIONS |
41 | G_DEFINE_ABSTRACT_TYPE (PangoEngineLang, pango_engine_lang, PANGO_TYPE_ENGINE); |
42 | G_GNUC_END_IGNORE_DEPRECATIONS |
43 | |
44 | static void |
45 | pango_engine_lang_init (PangoEngineLang *self) |
46 | { |
47 | } |
48 | |
49 | static void |
50 | pango_engine_lang_class_init (PangoEngineLangClass *klass) |
51 | { |
52 | } |
53 | |
54 | |
55 | static PangoCoverageLevel |
56 | pango_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 | |
69 | G_GNUC_BEGIN_IGNORE_DEPRECATIONS |
70 | G_DEFINE_ABSTRACT_TYPE (PangoEngineShape, pango_engine_shape, PANGO_TYPE_ENGINE); |
71 | G_GNUC_END_IGNORE_DEPRECATIONS |
72 | |
73 | static void |
74 | pango_engine_shape_init (PangoEngineShape *klass) |
75 | { |
76 | } |
77 | |
78 | static void |
79 | pango_engine_shape_class_init (PangoEngineShapeClass *class) |
80 | { |
81 | class->covers = pango_engine_shape_real_covers; |
82 | } |
83 | |