[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Pkg-fonts-devel] Bug#525510: Bug#525510: background color



tags 525510 + patch
thanks

On Sat, Apr 25, 2009 at 12:59 PM, gurkan <gurkan@phys.ethz.ch> wrote:

> Actually you can, just not so simply with the GUI
>
> http://www.typeforge.net/cms/index.php?option=com_content&task=view&id=41&Itemid=72&lang=en

Ah, yes, thanks. In fact, I've just also found a GUI way, using menu:

  File > X Resource Editor

Then, edit the GDraw > Default Background entry and Save As ~/.Xdefaults

> And yes, gray is much better. Fully agree.

I've got a small patch to set the default background color, as attached.
Please consider if it's OK to apply (it works for me), as well as adjust
the default gray scale background as appropriate.

Regards,
-- 
Theppitak Karoonboonyanan
http://linux.thai.net/~thep/
Index: fontforge-0.0.20090408/gdraw/gxdraw.c
===================================================================
--- fontforge-0.0.20090408.orig/gdraw/gxdraw.c	2009-04-25 13:02:39.000000000 +0700
+++ fontforge-0.0.20090408/gdraw/gxdraw.c	2009-04-25 13:02:55.000000000 +0700
@@ -4815,7 +4815,7 @@
     GXResourceInit(gdisp,programname);
 
     gdisp->bs.double_time = GResourceFindInt( "DoubleClickTime", gdisp->bs.double_time );
-    gdisp->def_background = GResourceFindColor( "Background", COLOR_CREATE(0xf5,0xff,0xfa));
+    gdisp->def_background = GResourceFindColor( "Background", COLOR_CREATE(0xf5,0xf5,0xf5));
     gdisp->def_foreground = GResourceFindColor( "Foreground", COLOR_CREATE(0x00,0x00,0x00));
     if ( GResourceFindBool("Synchronize", false ))
 	XSynchronize(gdisp->display,true);

Reply to: