Debian Codegraph @

lib/gtk/font-manager-fsType.h

raw
1 /* font-manager-fsType.h
2 *
3 * Copyright (C) 2009-2022 Jerry Casiano
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program.
17 *
18 * If not, see <http://www.gnu.org/licenses/gpl-3.0.txt>.
19 */
20
21 #pragma once
22
23 #include <glib.h>
24 #include <glib-object.h>
25 #include <glib/gi18n-lib.h>
26
27 /**
28 * FontManagerfsType:
29 * @FONT_MANAGER_FSTYPE_INSTALLABLE:
30 * Installable embedding
31 * @FONT_MANAGER_FSTYPE_RESTRICTED_LICENSE:
32 * Use prohibited without permission
33 * @FONT_MANAGER_FSTYPE_PREVIEW_AND_PRINT:
34 * Temporary read only access allowed.
35 * @FONT_MANAGER_FSTYPE_EDITABLE:
36 * Temporary read/write access allowed
37 * @FONT_MANAGER_FSTYPE_PREVIEW_AND_PRINT_NO_SUBSET:
38 * Same as @PREVIEW_AND_PRINT with an additional restriction on subsetting
39 * @FONT_MANAGER_FSTYPE_EDITABLE_NO_SUBSET:
40 * Same as @EDITABLE with an additional restriction on subsetting
41 * @FONT_MANAGER_FSTYPE_PREVIEW_AND_PRINT_BITMAP_ONLY:
42 * Same as @PREVIEW_AND_PRINT but only bitmaps can be embeeded
43 * @FONT_MANAGER_FSTYPE_EDITABLE_BITMAP_ONLY:
44 * Same as @EDITABLE but only bitmaps can be embeeded
45 * @FONT_MANAGER_FSTYPE_PREVIEW_AND_PRINT_NO_SUBSET_BITMAP_ONLY:
46 * Same as @PREVIEW_AND_PRINT but only bitmaps can be embeeded and no subsetting is allowed
47 * @FONT_MANAGER_FSTYPE_EDITABLE_NO_SUBSET_BITMAP_ONLY:
48 * Same as @EDITABLE but only bitmaps can be embeeded and no subsetting is allowed
49 */
50 typedef enum
51 {
52 FONT_MANAGER_FSTYPE_INSTALLABLE = 0,
53 FONT_MANAGER_FSTYPE_RESTRICTED_LICENSE = 2,
54 FONT_MANAGER_FSTYPE_PREVIEW_AND_PRINT = 4,
55 FONT_MANAGER_FSTYPE_EDITABLE = 8,
56 FONT_MANAGER_FSTYPE_PREVIEW_AND_PRINT_NO_SUBSET = 20,
57 FONT_MANAGER_FSTYPE_EDITABLE_NO_SUBSET = 24,
58 FONT_MANAGER_FSTYPE_PREVIEW_AND_PRINT_BITMAP_ONLY = 36,
59 FONT_MANAGER_FSTYPE_EDITABLE_BITMAP_ONLY = 40,
60 FONT_MANAGER_FSTYPE_PREVIEW_AND_PRINT_NO_SUBSET_BITMAP_ONLY = 52,
61 FONT_MANAGER_FSTYPE_EDITABLE_NO_SUBSET_BITMAP_ONLY = 56
62 }
63 FontManagerfsType;
64
65 GType font_manager_fsType_get_type (void);
66 #define FONT_MANAGER_TYPE_FSTYPE (font_manager_fsType_get_type ())
67
68 const gchar * font_manager_fsType_to_string (gint fstype);
69