Re: [racket-dev] console output

2010-12-10 Thread Eli Barzilay
About two weeks ago, Matthew Flatt wrote:
 Pango likes to warn you when it sets up certain font substitutions.
 I don't know whether there's any way to turn it off.

This bugged me a little, then when I got the same warnings on windows
it became more annoying.  To make a long story short, the warnings are
made with g_warning(), which has some gnome system for sending log
events, and apparently there is a default handler that handles events
with no other handler -- and this default handler is the noisy one.
There's a bunch of ways that are supposed to disable this, including
an environment variable (that can make warnings fatal and probably
nothing else), and a way to set handlers (which I couldn't get to
work) -- what eventually worked is a function that sets the default
handler:

  winooski:~ eli grt
  Welcome to Racket v5.0.99.4.
  - ,r ffi/unsafe
  - (define h! (get-ffi-obj 'g_log_set_default_handler #f (_fun (_fun _string 
_uint _string _pointer - _void) _pointer - _uint)))
  - (h! (lambda (domain level msg _) (log-warning (format [~a] ~a domain 
msg))) #f)
  776166784
  - ,r drracket

This fires up drr -- silently, at last.  Adding a `-W all' shows the
messages.

-- 
  ((lambda (x) (x x)) (lambda (x) (x x)))  Eli Barzilay:
http://barzilay.org/   Maze is Life!
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev


[racket-dev] console output

2010-11-26 Thread Matthias Felleisen

This shows up in my console when I load insert large letters for the first 
time. It did not show up with the gracket1. 



(process:56316): Pango-WARNING **: couldn't load font Snell Roundhand Medium 
Not-Rotated 24, falling back to Sans Medium Not-Rotated 24, expect ugly 
output.

(process:56316): Pango-WARNING **: couldn't load font Brush Script MT Medium 
Not-Rotated 24, falling back to Sans Medium Not-Rotated 24, expect ugly 
output.

(process:56316): Pango-WARNING **: couldn't load font Lucida Handwriting 
Medium Not-Rotated 24, falling back to Sans Medium Not-Rotated 24, expect 
ugly output.

(process:56316): Pango-WARNING **: couldn't load font Corsiva Hebrew Medium 
Not-Rotated 24, falling back to Sans Medium Not-Rotated 24, expect ugly 
output.

(process:56316): Pango-WARNING **: couldn't load font Zapfino Medium 
Not-Rotated 24, falling back to Sans Medium Not-Rotated 24, expect ugly 
output.

(process:56316): Pango-WARNING **: couldn't load font Apple Chancery Medium 
Not-Rotated 24, falling back to Sans Medium Not-Rotated 24, expect ugly 
output.

(process:56316): Pango-WARNING **: couldn't load font Lucida Calligraphy 
Medium Not-Rotated 24, falling back to Sans Medium Not-Rotated 24, expect 
ugly output.
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev