Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1. Re:  Problem with Graphics.SOE (Thomas Hallgren)
   2. Re:  Problem with Graphics.SOE (Vitaly Dolgov)


----------------------------------------------------------------------

Message: 1
Date: Mon, 29 Mar 2021 14:32:38 +0200
From: Thomas Hallgren <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] Problem with Graphics.SOE
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8

Hi,

I did a quick grep in the HGL source code, and it looks like it is trying to use
a font called "9x15", which is one of the traditional X Windows fonts, and they
are not always installed by default on modern Linux systems. You can see which X
fonts are installed by running the xlsfonts command. In Ubuntu / Debian, the
"9x15" font is included in a package called xfonts-base, which is installed by
default however, so my best guess is that you are using another flavour of Linux
where you need to install some additional font package to get that font...

Hope this helps,
Thomas H

On 2021-03-29 12:18, Vitaly Dolgov wrote:
> Hi, everybody!
> 
> I'm trying to do an example from the book "The Haskell
> School of Expression", which originally uses `SOEGraphics`, I use
> `Graphics.SOE` instead, but I get the following error on each run:
> 
> `user error (loadQueryFont)`
> 
> I have no idea how to approach the problem... `:trace` outputs an empty
> exception :( Could you please help me to solve this?
> 
> My environment is: Linux, ghc 8.10.4, HGL 3.2.3.2
> The code is quite basic:
> 
> ```
> import Graphics.SOE
> 
> main
>    = runGraphics $
>      do w <- openWindow "Hello World!" (300, 300)
>         drawInWindow w (text (100, 200) "Hello World!")
>         k <- getKey w
>         closeWindow w
> ```
> 
> Thank you,
> Vitaly
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
> 




------------------------------

Message: 2
Date: Mon, 29 Mar 2021 19:10:05 +0300
From: Vitaly Dolgov <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] Problem with Graphics.SOE
Message-ID: <20210329191005.0dccb015@yoga>
Content-Type: text/plain; charset=US-ASCII

Thanks, Thomas!

This was exactly the case. 

In Fedora the package is `xorg-x11-fonts-misc`.

Vitaly

On Mon, 29 Mar 2021 14:32:38 +0200
Thomas Hallgren <[email protected]> wrote:

> Hi,
> 
> I did a quick grep in the HGL source code, and it looks like it is
> trying to use a font called "9x15", which is one of the traditional X
> Windows fonts, and they are not always installed by default on modern
> Linux systems. You can see which X fonts are installed by running the
> xlsfonts command. In Ubuntu / Debian, the "9x15" font is included in
> a package called xfonts-base, which is installed by default however,
> so my best guess is that you are using another flavour of Linux where
> you need to install some additional font package to get that font...
> 
> Hope this helps,
> Thomas H
> 
> On 2021-03-29 12:18, Vitaly Dolgov wrote:
> > Hi, everybody!
> > 
> > I'm trying to do an example from the book "The Haskell
> > School of Expression", which originally uses `SOEGraphics`, I use
> > `Graphics.SOE` instead, but I get the following error on each run:
> > 
> > `user error (loadQueryFont)`
> > 
> > I have no idea how to approach the problem... `:trace` outputs an
> > empty exception :( Could you please help me to solve this?
> > 
> > My environment is: Linux, ghc 8.10.4, HGL 3.2.3.2
> > The code is quite basic:
> > 
> > ```
> > import Graphics.SOE
> > 
> > main
> >    = runGraphics $
> >      do w <- openWindow "Hello World!" (300, 300)
> >         drawInWindow w (text (100, 200) "Hello World!")
> >         k <- getKey w
> >         closeWindow w
> > ```
> > 
> > Thank you,
> > Vitaly
> > _______________________________________________
> > Beginners mailing list
> > [email protected]
> > http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
> > 
> 
> 
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners



------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 152, Issue 12
******************************************

Reply via email to