On Wednesday 06 December 2000 10:38, Jean-Marc Lasgouttes wrote:
> >>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
>
> Angus> Well, the only place that font_sizes[] are actually used:
>
> Angus> src/lyxrc.h:222: float font_sizes[10]; FontLoader.C:232: int
> Angus> fsize = int( (lyxrc.font_sizes[size] * lyxrc.dpi *
> Angus> (lyxrc.zoom/100.0) ) / 72.27 + 0.5 );
>
> Angus> I'll change font_sizes[] to int. Whilst I'm at it, I'll change
> Angus> dpi too.
>
> Maybe you'll have to make sure that older lyxrc are read correctly
> (still read the value as a float, maybe).
>
> Also, I found out that I forgot to add a setlocale(LC_NUMERIC, "C") to
> gettext.h. I'll do that.
Should I change from float to int actually? The default sizes are:
\screen_font_sizes 5.0 7.0 8.0 9.0 10.0 12.0 14.4 17.28 20.74 24.88
I think, therefore that I should leave things as they are. Your fix is the
right one I think.
The real question is why Rainer's preferences file contains the sizes it does:
\screen_font_sizes 5,00 7,00 8,00 9,00 10,00 12,00 0,00 0,00 0,00 0,00
What environment variables do I need to set to reproduce Rainer's problem:
LANG=de
LC_NUMERIC=de
What else.
A.