From 440e7588459f39a56043bc85658aec5a9262a2e3 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Wed, 8 Mar 2017 13:32:04 +0100 Subject: font-viewer font-utils: Add face_index argument font_utils_get_font_name_for_file() now takes face index as the third argument. All callers changed. --- font-viewer/font-utils.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'font-viewer/font-utils.c') diff --git a/font-viewer/font-utils.c b/font-viewer/font-utils.c index 6c96395a..c9a84349 100644 --- a/font-viewer/font-utils.c +++ b/font-viewer/font-utils.c @@ -37,7 +37,8 @@ font_utils_get_font_name (FT_Face face) gchar * font_utils_get_font_name_for_file (FT_Library library, - const gchar *path) + const gchar *path, + gint face_index) { GFile *file; gchar *uri, *contents = NULL, *name = NULL; @@ -47,7 +48,8 @@ font_utils_get_font_name_for_file (FT_Library library, file = g_file_new_for_path (path); uri = g_file_get_uri (file); - face = sushi_new_ft_face_from_uri (library, uri, 0, &contents, &error); + face = sushi_new_ft_face_from_uri (library, uri, face_index, &contents, + &error); if (face != NULL) { name = font_utils_get_font_name (face); FT_Done_Face (face); -- cgit v1.2.1