public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Roland Schwingel <roland@onevision.com>
To: insight@sourceware.org
Subject: [PATCH] libgui: Adjust windows default fonts
Date: Thu, 22 Mar 2012 14:55:00 -0000	[thread overview]
Message-ID: <4F6B3D2F.10103@onevision.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 881 bytes --]

Hi...

libgui sets a bunch of default fonts which are giving the UI a quite
heavy/fat look on windows. Attached you find a small patch that uses
smaller fonts on windows. This results in roughly 30% more space in
source view and nicer looking panels. The changed fonts are at least
present since windows NT 4.0 - also since 1996 - so we can use them just
nicely.

Attached you find the small patch. Originally I wanted to attach 2 screenshots
but the mail got rejected by the mailinglist software. If someone is
interested I can send them seperately.

The patch is windows only!

Changelog:

2012-03-22  Roland Schwingel<roland.schwingel@onevision.com>

      * library/looknfeel.tcl (standard_look_and_feel): Change default
      fonts on windows. Default and status font is now Tahoma size 10.
      Source font is now Lucida Console size 9.

Any comments? Is this ok?

Roland



[-- Attachment #2: libgui_win_defaults.patch --]
[-- Type: text/plain, Size: 997 bytes --]

diff -ruN libgui_orig/library/looknfeel.tcl libgui/library/looknfeel.tcl
--- libgui_orig/library/looknfeel.tcl	2002-02-26 02:16:22.000000000 +0100
+++ libgui/library/looknfeel.tcl	2012-03-22 13:44:12.516985900 +0100
@@ -22,11 +22,11 @@
   # The fixed font is guaranteed not to be proportional.
   # The status font should be used in status bars and tooltips.
   if {$tcl_platform(platform) == "windows"} then {
-    define_font global/default -family windows-message
+    define_font global/default -family "Tahoma" -size 10
     # FIXME: this isn't actually a bold font...
     define_font global/bold -family windows-caption
-    define_font global/fixed -family fixedsys
-    define_font global/status -family windows-status
+    define_font global/fixed -family "Lucida Console" -size 9
+    define_font global/status -family "Tahoma" -size 10
     # FIXME: we'd like this font to update automatically as well.  But
     # for now we can't.
     array set actual [font actual windows-message]

             reply	other threads:[~2012-03-22 14:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-22 14:55 Roland Schwingel [this message]
2012-03-29 23:25 ` Keith Seitz
2012-03-30 10:18 Roland Schwingel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F6B3D2F.10103@onevision.com \
    --to=roland@onevision.com \
    --cc=insight@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).