Top | ![]() |
![]() |
![]() |
![]() |
GQuark | font_manager_freetype_error_quark () |
glong | font_manager_get_face_count () |
gfloat | font_manager_get_font_revision () |
JsonObject * | font_manager_get_metadata () |
gchar * | font_manager_get_suggested_filename () |
GFile * | font_manager_get_installation_target () |
glong font_manager_get_face_count (const gchar *filepath
,GError **error
);
This function never fails. In case of an error this function returns 1. Any valid font file should contain at least one variation.
JsonObject * font_manager_get_metadata (const gchar *filepath
,gint index
,GError **error
);
See FontManagerFontInfo for a description of the JsonObject returned by this function.
filepath |
full path to font file to examine |
|
index |
face index to examine |
|
error |
GError or |
A newly created JsonObject or NULL
if there was an error.
Free the returned object using json_object_unref when no longer needed.
[transfer full][nullable]
gchar *
font_manager_get_suggested_filename (JsonObject *metadata
);
GFile * font_manager_get_installation_target (GFile *font_file
,GFile *target_dir
,gboolean create_directories
,GError **error
);
The GFile returned by this function is the suggested output file based
on the metadata present in font_file
.
If create_directories
is FALSE
the parent directory for the returned GFile
may not exist and should be created prior to use.
font_file |
GFile |
|
target_dir |
GFile |
|
create_directories |
whether to create suggested directories or not |
|
error |
GError or |
A newly-created GFile or NULL
if there was an error.
Free the returned object using
. g_object_unref()
[transfer full][nullable]