index 577efe7c15b1aee1631be7382c2611129cf052a5..ce0893430543728a89fdaaa18f250f4589c455b8 100644 (file)
g_object_set_data (G_OBJECT(fsel), "family-treeview", fsel->family_treeview);
+ //TRANSLATORS: only translate "string" in "context|string".
+ // For more details, see http://developer.gnome.org/doc/API/2.0/glib/glib-I18N.html#Q-:CAPS
/* Style frame */
- f = gtk_frame_new(_("Style"));
+ f = gtk_frame_new(Q_("fontselector|Style"));
gtk_widget_show(f);
gtk_box_pack_start(GTK_BOX (fsel), f, TRUE, TRUE, 0);
font_instance *tface = fprev->rfont->daddy;
- double theSize = NR::expansion(fprev->rfont->style.transform);
+ double theSize = fprev->rfont->style.transform.descrim();
gchar const *p;
if (fprev->phrase) {
hpos[len] = base_pt[0];
len++;
if ( curF ) {
- boost::optional<Geom::Rect> nbbox = curF->BBox(str_text->glyph_text[i].gl);
+ Geom::OptRect nbbox = curF->BBox(str_text->glyph_text[i].gl);
if (nbbox) {
bbox.x0 = MIN(bbox.x0, base_pt[Geom::X] + theSize * (nbbox->min())[0]);
bbox.y0 = MIN(bbox.y0, base_pt[Geom::Y] - theSize * (nbbox->max())[1]);