On Wednesday 06 December 2000 09:30, Jean-Marc Lasgouttes wrote:
> >>>>> "Rainer" == Rainer Hoffmann <[EMAIL PROTECTED]> writes:
>
> Rainer> # # SCREEN & FONTS SECTION ############################ #
>
> Rainer> \screen_dpi 74 \screen_font_sizes 5,00 7,00 8,00 9,00 10,00
> Rainer> 12,00 0,00 0,00 0,00 0,00
>
> That's the point where things failed. Why are these numbers output
> with german commas? I thought that we had set the LC_NUMERIC locale
> correctly... Also, why do we use floats instead of ints there? Does
> X11 support that?

Well, the only place that font_sizes[] are actually used:

src/lyxrc.h:222:        float font_sizes[10];                                 
FontLoader.C:232:  int fsize = int( (lyxrc.font_sizes[size] * lyxrc.dpi *
                                   (lyxrc.zoom/100.0) ) / 72.27 + 0.5 );

I'll change font_sizes[] to int. Whilst I'm at it, I'll change dpi too.
Angus

Reply via email to