| 1 |
/* font-manager-font-info.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 |
|
| 26 |
#include "font-manager-json-proxy.h" |
| 27 |
|
| 28 |
/* Order matters, adjust bind_from_properties to account for changes */ |
| 29 |
static const FontManagerJsonProxyProperty InfoProperties [] = |
| 30 |
{ |
| 31 |
{ "RESERVED", G_TYPE_RESERVED_GLIB_FIRST, NULL }, |
| 32 |
{ "filepath", G_TYPE_STRING, "Filepath" }, |
| 33 |
{ "findex", G_TYPE_INT64, "Face index" }, |
| 34 |
{ "family", G_TYPE_STRING, "Family name" }, |
| 35 |
{ "style", G_TYPE_STRING, "Style" }, |
| 36 |
{ "owner", G_TYPE_INT64, "Whether file is writable by user" }, |
| 37 |
{ "psname", G_TYPE_STRING, "PostScript name" }, |
| 38 |
{ "filetype", G_TYPE_STRING, "Font format" }, |
| 39 |
{ "n-glyphs", G_TYPE_INT64, "Number of glyphs" }, |
| 40 |
{ "copyright", G_TYPE_STRING, "Copyright notice" }, |
| 41 |
{ "version", G_TYPE_STRING, "Font version" }, |
| 42 |
{ "description", G_TYPE_STRING, "Design description" }, |
| 43 |
{ "license-data", G_TYPE_STRING, "Embedded license data" }, |
| 44 |
{ "license-url", G_TYPE_STRING, "License URL" }, |
| 45 |
{ "vendor", G_TYPE_STRING, "Font foundry name" }, |
| 46 |
{ "designer", G_TYPE_STRING, "Name of font designer" }, |
| 47 |
{ "designer-url", G_TYPE_STRING, "Designer homepage" }, |
| 48 |
{ "license-type", G_TYPE_STRING, "License type" }, |
| 49 |
{ "fsType", G_TYPE_INT64, "Embedding restrictions" }, |
| 50 |
{ "filesize", G_TYPE_STRING, "Size on disk" }, |
| 51 |
{ "checksum", G_TYPE_STRING, "MD5 checksum" }, |
| 52 |
{ FONT_MANAGER_JSON_PROXY_SOURCE, G_TYPE_RESERVED_USER_FIRST, "JsonObject source for this class" }, |
| 53 |
{ "panose", G_TYPE_BOXED, "Panose information as a JsonArray" } |
| 54 |
}; |
| 55 |
|
| 56 |
#define FONT_MANAGER_TYPE_FONT_INFO (font_manager_font_info_get_type()) |
| 57 |
G_DECLARE_FINAL_TYPE(FontManagerFontInfo, font_manager_font_info, FONT_MANAGER, FONT_INFO, FontManagerJsonProxy) |
| 58 |
|
| 59 |
FontManagerFontInfo * font_manager_font_info_new (void); |
| 60 |
|