return 0;
}
-std::string
-Open_type_font::get_otf_table (std::string tag) const
+string
+Open_type_font::get_otf_table (string tag) const
{
return ::get_otf_table (face_, tag);
}
SCM tab = SCM_EOL;
if (buffer)
{
- std::string contents ((char const*)buffer, length);
+ string contents ((char const*)buffer, length);
contents = "(quote (" + contents + "))";
tab = scm_c_eval_string (contents.c_str ());
/*
UGH fix naming
*/
-std::string
-get_otf_table (FT_Face face, std::string tag)
+string
+get_otf_table (FT_Face face, string tag)
{
FT_ULong len;
FT_Byte *tab = load_table (tag.c_str (), face, &len);
- return std::string ((char const*) tab, len);
+ return string ((char const*) tab, len);
}
FT_Face
-open_ft_face (std::string str)
+open_ft_face (string str)
{
FT_Face face;
int error_code = FT_New_Face (freetype2_library, str.c_str (), 0, &face);
}
SCM
-Open_type_font::make_otf (std::string str)
+Open_type_font::make_otf (string str)
{
FT_Face face = open_ft_face (str);
Open_type_font *otf = new Open_type_font (face);
}
Offset
-Open_type_font::attachment_point (std::string glyph_name) const
+Open_type_font::attachment_point (string glyph_name) const
{
SCM sym = ly_symbol2scm (glyph_name.c_str ());
SCM entry = scm_hashq_ref (lily_character_table_, sym, SCM_BOOL_F);
}
vsize
-Open_type_font::name_to_index (std::string nm) const
+Open_type_font::name_to_index (string nm) const
{
char *nm_str = (char *) nm.c_str ();
if (vsize idx = FT_Get_Name_Index (face_, nm_str))
return lily_global_table_;
}
-std::string
+string
Open_type_font::font_name () const
{
return FT_Get_Postscript_Name (face_);