Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2007-10

IDE fonts and codepage

5 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Frank McCormick

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I followed the suggestion made sometime ago about loading cp850-8x16 font to get the line drawing characters when in the IDE on the console, but noticed then I don't have certain characters available on the keyboard, such as '/' etc. Whats the solution to this. This whole issue of fonts and codepages is a little beyond me :)

The IDE has no problem under X, matter of fact I love the fact it now supports the mouse!!

Thanks

Cheers

Frank
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHB6pszWG7ldLG6fIRAml4AJ4scAKvRi+q4oMJE3lwID/G9lz80wCfVhuJ uRKjggFR+d/2EwBZBhOgopI=
=6aK7
-----END PGP SIGNATURE-----

Daniël Mantione
to Frank McCormick

Op Sat, 6 Oct 2007, schreef Frank McCormick:

Show quoted text 9 lines
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I followed the suggestion made sometime ago about loading cp850-8x16 font to get the line drawing characters when in the IDE on the console, but noticed then I don't have certain characters available on the keyboard, such as '/' etc. Whats the solution to this. This whole issue of fonts and codepages is a little beyond me :)

You press the "/" key and no slash appears in the editor? Or you load the font and the "/" stops working?

How do you load the font, using "setfont" from the command line or by modifying configuration files?

The IDE has no problem under X, matter of fact I love the fact it now supports the mouse!!

The disadvantage of X is that full funcationality is not possible. But we are doing the maximum possible and will continue to push the limits :)

Daniël

Frank McCormick
to Daniël Mantione
Show quoted text 9 lines
> > I followed the suggestion made sometime ago about loading cp850-8x16 > font to get the line drawing characters when in the IDE on the console, > but noticed then I don't have certain characters available on the > keyboard, such as '/' etc. Whats the solution to this. This whole issue > of fonts and codepages is a little beyond me :) You press the "/" key and no slash appears in the editor? Or you load the font and the "/" stops working?

The "/" key for example (there may be others that don't display properly) works but the character which appears is not "/".

How do you load the font, using "setfont" from the command line or by modifying configuration files?

I run setupcon (under Debian Sid) and it reads a config file in /etc/defaults/setupcon.conf. It has a line in it which allows you to load a font directly. I load cp850-8x16 and have the "/" problem. It does display line characters correctly however. Maybe I need to load a translate table ??

Show quoted text 7 lines
> The IDE has no problem under X, matter of fact I love the fact it now > supports the mouse!! The disadvantage of X is that full funcationality is not possible. But we are doing the maximum possible and will continue to push the limits :)

With my setup running FP under RXVT it is 99.9% functional. The only wierd problem I've encountered is "internal GDB error 0" when stepping through code but I don't **think** thats an X problem.

Cheers
Frank

Change the world one loan at a time - visit Kiva.org to find out how
Daniël Mantione
to Frank McCormick

Op Sat, 6 Oct 2007, schreef Frank McCormick:

Show quoted text 24 lines
On Sat, 06 Oct 2007 17:41:42 +0200 (CEST) Daniël Mantione wrote: > > > > I followed the suggestion made sometime ago about loading cp850-8x16 > > font to get the line drawing characters when in the IDE on the console, > > but noticed then I don't have certain characters available on the > > keyboard, such as '/' etc. Whats the solution to this. This whole issue > > of fonts and codepages is a little beyond me :) > > You press the "/" key and no slash appears in the editor? Or you load > the font and the "/" stops working? The "/" key for example (there may be others that don't display properly) works but the character which appears is not "/". > How do you load the font, using "setfont" from the command line or by > modifying configuration files? I run setupcon (under Debian Sid) and it reads a config file in /etc/defaults/setupcon.conf. It has a line in it which allows you to load a font directly. I load cp850-8x16 and have the "/" problem. It does display line characters correctly however. Maybe I need to load a translate table ??

No, because cp850-8x16 has the right table built in. But if Debian's scripts load a table designed for a different font, these kind to problems can happen.

If you use tables, assuming your filesystem is ISO-8859-1 encoded, you should load 8859-1_to_uni.trans as console translation table and cp850.uni as the font unicode map.

Daniël

Frank McCormick
to Daniël Mantione
Show quoted text 30 lines
> > > > > > I followed the suggestion made sometime ago about loading cp850-8x16 > > > font to get the line drawing characters when in the IDE on the console, > > > but noticed then I don't have certain characters available on the > > > keyboard, such as '/' etc. Whats the solution to this. This whole issue > > > of fonts and codepages is a little beyond me :) > > > > You press the "/" key and no slash appears in the editor? Or you load > > the font and the "/" stops working? > > > The "/" key for example (there may be others that don't display properly) > works but the character which appears is not "/". > > > How do you load the font, using "setfont" from the command line or by > > modifying configuration files? > > I run setupcon (under Debian Sid) and it reads a config file > in /etc/defaults/setupcon.conf. It has a line in it which allows you to load a > font directly. I load cp850-8x16 and have the "/" problem. It does display line > characters correctly however. Maybe I need to load a translate table ?? No, because cp850-8x16 has the right table built in. But if Debian's scripts load a table designed for a different font, these kind to problems can happen. If you use tables, assuming your filesystem is ISO-8859-1 encoded, you should load 8859-1_to_uni.trans as console translation table and cp850.uni as the font unicode map.

The suggestions worked. I found the right combination and now the drawing characters are there and FP runs smoothly.

Thanks again for FPC - great compiler---great support!

Cheers

Frank

Change the world one loan at a time - visit Kiva.org to find out how