[fpc-pascal] IDE fonts and codepage

Daniël Mantione daniel.mantione at freepascal.org
Sat Oct 6 18:27:42 CEST 2007



Op Sat, 6 Oct 2007, schreef Frank McCormick:

> On Sat, 06 Oct 2007 17:41:42 +0200 (CEST)
> Daniël Mantione <daniel.mantione at freepascal.org> 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


More information about the fpc-pascal mailing list