+#define BRACE_GLYPHS 1
+ cairo_glyph_t brace;
+ cairo_save (cr);
+
+ /* Brace test */
+ cairo_select_font_face (cr, "Gonville-Brace", 0, 0);
+
+ /* XXX: This font size (in conjunction with the glyph selection)
+ * is a rough guess at best. We should figure out how the brace
+ * font is intended to be used and actually measure to find the
+ * correctly sized glyph. */
+ cairo_set_font_size (cr, 40);
+
+ cairo_translate (cr, 5, 0);
+ score->width -= 5;
+
+ /* XXX: This hard-coded glyph index is pretty ugly. We should
+ * figure out how to lookup the glyph we want, (though, as it
+ * turns out, this brace font pretty much just has numbered glyph
+ * names for different sizes, so it wouldn't be all that different
+ * than just the bare index here). */
+ brace.index = 185;
+ brace.x = 0;
+ brace.y = score->staff_height * 1.5;
+
+ cairo_set_source_rgb (cr, 0.0, 0.0, 0.0); /* black */
+ cairo_show_glyphs (cr, &brace, 1);
+
+ cairo_translate (cr, 2, 0);
+ score->width -= 2;
+
+ /* Vertical lines at each end */
+ cairo_rectangle (cr,
+ score->line_width / 2.0,
+ score->line_width / 2.0,
+ score->width - score->line_width,
+ score->staff_height * 3);
+ cairo_set_source_rgb (cr, 0.0, 0.0, 0.0); /* black */
+ cairo_set_line_width (cr, score->line_width);
+ cairo_stroke (cr);
+
+ /* Top staff */
+ _draw_staff (score, cr, SCORE_CLEF_G);
+
+ /* Bottom staff */
+ cairo_translate (cr, 0, score->staff_height * 2);
+ _draw_staff (score, cr, SCORE_CLEF_F);
+
+ cairo_restore (cr);