mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-27 08:57:41 +01:00
Add some debug for Marker's font settings, and set the Text's font before setting it's text
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3609 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
515546ee99
commit
1ba9658885
1 changed files with 3 additions and 2 deletions
|
|
@ -34,6 +34,7 @@ Marker::Marker (PublicEditor& ed, ArdourCanvas::Group& parent, guint32 rgba, con
|
|||
|
||||
: editor (ed), _parent(&parent), _type(type)
|
||||
{
|
||||
cerr << "Marker() constructed";//DEBUG
|
||||
double label_offset = 0;
|
||||
bool annotate_left = false;
|
||||
|
||||
|
|
@ -243,10 +244,10 @@ Marker::Marker (PublicEditor& ed, ArdourCanvas::Group& parent, guint32 rgba, con
|
|||
mark->property_outline_color_rgba() = rgba;
|
||||
mark->property_width_pixels() = 1;
|
||||
Pango::FontDescription* font = get_font_for_style (N_("MarkerText"));
|
||||
|
||||
cerr << " font->get_size() = " << font->get_size() << " family = " << font->get_family() << endl;
|
||||
text = new Text (*group);
|
||||
text->property_text() = annotation.c_str();
|
||||
text->property_font_desc() = *font;
|
||||
text->property_text() = annotation.c_str();
|
||||
|
||||
delete font;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue