[ubuntu-x] [PATCH 10/15] gnome-control-center: Font size reduction
Bryce Harrington
bryce at canonical.com
Thu Apr 10 21:00:18 BST 2008
gnome-control-center: 108_cc-randr12-capplet-font-layout.patch (LP:
#201589)
Cosmetic issue. Shrinks font size from 16 to 12 so long monitor names
fit within bounding boxes.
diff -Nur -x '*.orig' -x '*~' gnome-control-center-2.22.1/capplets/display/xrandr-capplet.c gnome-control-center-2.22.1.new/capplets/display/xrandr-capplet.c
--- gnome-control-center-2.22.1/capplets/display/xrandr-capplet.c 2008-04-09 12:49:31.000000000 +0100
+++ gnome-control-center-2.22.1.new/capplets/display/xrandr-capplet.c 2008-04-09 12:50:05.000000000 +0100
@@ -1373,8 +1373,10 @@
cairo_stroke (cr);
cairo_set_line_width (cr, 2);
- layout_set_font (layout, "Sans Bold 12");
-
+ layout_set_font (layout, "Sans Bold 16");
+ //pango_layout_set_width(layout, w * PANGO_SCALE);
+ //pango_layout_set_height(layout, (int)(h * scale + 0.5) * PANGO_SCALE);
+ //pango_layout_set_alignment(layout, PANGO_ALIGN_CENTER);
pango_layout_get_pixel_extents (layout, NULL, &extent);
extent.x = x + ((w * scale + 0.5) - extent.width) / 2;
More information about the Ubuntu-x
mailing list