[fpc-pascal] IDE fonts and codepage
Frank McCormick
fmccormick at videotron.ca
Mon Oct 8 00:40:55 CEST 2007
On Sat, 06 Oct 2007 18:27: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.
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
More information about the fpc-pascal
mailing list