[PATCH 10/15] gnome-control-center: Font size reduction
- From: Bryce Harrington <bryce canonical com>
- To: Soeren Sandmann <sandmann daimi au dk>
- Cc: ubuntu-x lists ubuntu com, gnomecc-list gnome org
- Subject: [PATCH 10/15] gnome-control-center: Font size reduction
- Date: Thu, 10 Apr 2008 13:00:18 -0700
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]