2 open-type-font.cc -- implement Open_type_font
4 source file of the GNU LilyPond music typesetter
6 (c) 2004 Han-Wen Nienhuys <hanwen@xs4all.nl>
10 #include "open-type-font.hh"
13 Open_type_font::make_otf (String str)
15 Open_type_font * otf = new Open_type_font;
16 int error_code = FT_New_Face( freetype2_library, str.to_str0(),
19 if (error_code == FT_Err_Unknown_File_Format)
21 error("Unsupported font format");
25 error ("Unknown error reading font file.");
28 return otf->self_scm ();
31 Open_type_font::~Open_type_font()