X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fopen-type-font.hh;h=76d015325591ab602900aa356146fb0cf4d8431c;hb=3278a7a8108ffdd2da3d1b58d05aba7c1b2a5707;hp=8c79ef9f273896de909e77b2753b68a3ec180b20;hpb=40aac0ae57ee113faa860ba221d83d9e6312173e;p=lilypond.git diff --git a/lily/include/open-type-font.hh b/lily/include/open-type-font.hh index 8c79ef9f27..76d0153255 100644 --- a/lily/include/open-type-font.hh +++ b/lily/include/open-type-font.hh @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2004--2014 Han-Wen Nienhuys + Copyright (C) 2004--2015 Han-Wen Nienhuys LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -26,15 +26,19 @@ Index_to_charcode_map make_index_to_charcode_map (FT_Face face); void get_unicode_name (char *s, FT_ULong code); void get_glyph_index_name (char *s, FT_ULong code); -class Open_type_font : public Font_metric -{ - /* handle to face object */ - FT_Face face_; - +struct Preinit_Open_type_font { SCM lily_subfonts_; SCM lily_character_table_; SCM lily_global_table_; SCM lily_index_to_bbox_table_; + Preinit_Open_type_font (); +}; + +class Open_type_font : Preinit_Open_type_font, public Font_metric +{ + /* handle to face object */ + FT_Face face_; + string postscript_name_; Index_to_charcode_map index_to_charcode_map_; Open_type_font (FT_Face); @@ -65,5 +69,6 @@ public: string get_otf_table (FT_Face face, const string &tag); FT_Face open_ft_face (const string&, FT_Long idx); +string get_postscript_name (FT_Face face); #endif /* OPEN_TYPE_FONT_HH */