X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fttf.cc;h=02ccdb8dd430f9ae15653f328cbf96891a5f038e;hb=97a0169312a260933246ab224e4f8b0969871dd5;hp=dedd83cd88909d755584bb1f4ebe3483158bd2dc;hpb=f127e14af04f474d20406ca0e0f76f05061ee103;p=lilypond.git diff --git a/lily/ttf.cc b/lily/ttf.cc index dedd83cd88..02ccdb8dd4 100644 --- a/lily/ttf.cc +++ b/lily/ttf.cc @@ -29,9 +29,6 @@ #include "main.hh" #include "open-type-font.hh" -using std::string; -using std::vector; - Index_to_charcode_map make_index_to_charcode_map (FT_Face face) { @@ -70,7 +67,7 @@ print_header (void *out, FT_Face face) lily_cookie_fprintf (out, "%d dict begin\n", 11); lily_cookie_fprintf (out, "/FontName /%s def\n", - FT_Get_Postscript_Name (face)); + get_postscript_name (face).c_str ()); lily_cookie_fprintf (out, "/Encoding StandardEncoding def\n"); lily_cookie_fprintf (out, "/PaintType 0 def\n"); @@ -536,8 +533,7 @@ LY_DEFINE (ly_ttf_ps_name, "ly:ttf-ps-name", } face = open_ft_face (file_name, i); - char const *ps_name_str0 = FT_Get_Postscript_Name (face); - SCM ps_name = scm_from_locale_string (ps_name_str0 ? ps_name_str0 : ""); + SCM ps_name = scm_from_locale_string (get_postscript_name (face).c_str ()); FT_Done_Face (face); debug_output ("]", false);