Debian Codegraph @

lib/json/font-manager-font.h

raw
1 /* font-manager-font.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 "font-manager-json-proxy.h"
24
25 /* Order matters, adjust bind_from_properties to account for changes */
26 static const FontManagerJsonProxyProperty FontProperties [] =
27 {
28 { "RESERVED", G_TYPE_RESERVED_GLIB_FIRST, NULL },
29 { "filepath", G_TYPE_STRING, "Font filepath" },
30 { "findex", G_TYPE_INT64, "Font face index" },
31 { "family", G_TYPE_STRING, "Fontconfig family name" },
32 { "style", G_TYPE_STRING, "Fontconfig style name"},
33 { "spacing", G_TYPE_INT64, "Fontconfig spacing" },
34 { "slant", G_TYPE_INT64, "Fontconfig slant" },
35 { "weight", G_TYPE_INT64, "Fontconfig weight" },
36 { "width", G_TYPE_INT64, "Fontconfig width" },
37 { "description", G_TYPE_STRING, "Pango font description" },
38 { "preview-text", G_TYPE_STRING, "Sample text" },
39 { "active", G_TYPE_BOOLEAN, "Whether font is active" },
40 { FONT_MANAGER_JSON_PROXY_SOURCE, G_TYPE_RESERVED_USER_FIRST, "JsonObject source for this class" }
41 };
42
43 #define FONT_MANAGER_TYPE_FONT (font_manager_font_get_type())
44 G_DECLARE_FINAL_TYPE(FontManagerFont, font_manager_font, FONT_MANAGER, FONT, FontManagerJsonProxy)
45
46 FontManagerFont * font_manager_font_new (void);
47