X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fpango-font.hh;h=ff5e6302f061f505347001cce6a34aa3fbfef585;hb=47db9a3883d726ca53e2133a3b2298f78dd6a32e;hp=6b4ad4b68f9646196d774216b0d27330d2892e0f;hpb=08560a1b8076630c4fc6cb9b902614d8b74fd6fc;p=lilypond.git diff --git a/lily/include/pango-font.hh b/lily/include/pango-font.hh index 6b4ad4b68f..ff5e6302f0 100644 --- a/lily/include/pango-font.hh +++ b/lily/include/pango-font.hh @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2004--2012 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 @@ -48,12 +48,18 @@ public: string description_string () const; SCM font_file_name () const; - void register_font_file (string, string, int); + void register_font_file (const string &filename, const string &ps_name, int face_index); + + size_t name_to_index (string) const; + SCM get_glyph_outline (size_t signed_idx) const; + Box get_glyph_outline_bbox (size_t signed_idx) const; + Box get_unscaled_indexed_char_dimensions (size_t) const; + Box get_scaled_indexed_char_dimensions (size_t) const; Stencil pango_item_string_stencil (PangoGlyphItem const *) const; virtual Stencil text_stencil (Output_def *output_state, - string text, bool music) const; + const string &text, bool music) const; virtual void derived_mark () const; };