aboutsummaryrefslogblamecommitdiffstats
path: root/libskrift_open_font_file.c
blob: 32e69d60faf72c1155b91405de5665bb66bcab99 (plain) (tree)
1
2
3
4
5
6
7
8
9
10





                                                                  

                               

                          
                                                             
 
/* See LICENSE file for copyright and license details. */
#include "common.h"

int
libskrift_open_font_file(LIBSKRIFT_FONT **fontp, const char *path)
{
	if (!*path) {
		errno = EINVAL;
		return -1;
	}
	return libskrift_open_font_at(fontp, AT_FDCWD, path);
}