|
Post by Jo on Jan 14, 2014 8:07:46 GMT -5
Hi !
On every start, the SPFLite-Window is on the same upperleft position, but expands to the right um 2 characters. So, ok, it's no problem to readjust the window after some restarts, .... I use Win8.1 on two screens, SPFLite v7.1.4001, Font Name Fixedsys, Font Pitch 12.
Regards Jo (and sorry for posting so much these days)
|
|
|
Post by George on Jan 14, 2014 12:19:52 GMT -5
Hi Jo,
This is a really weird one. I'm running Win 8.1 and like Robert haven't experienced this.
BUT - I switched to FixedSys/12 font, and there it is, it grows by two just as you say. I tried several other fixed fonts, no problem.
So, until this can be pinned down, may I suggest you choose a different font, there are many available, and there is a collection on the web site for download. Robert will of course suggest the Raster font, since he's the author. But it is indeed a nice one.
Robert: Any ideas about how this could possibly occur? I'm at a total loss. I load the font, ask the system for it's x/y size in pixels and everything else gets calculated based on that. What could be different for that particular font?
George
|
|
|
Post by George on Jan 14, 2014 14:00:27 GMT -5
Well, the only font metrics I fetch, and the only ones I care about are the font height/width in pixels.
Everything is either multiplying these values by screen height/width in lines/columns to get screen size in pixels. Or the reverse, dividing a screen height/width in pixels to obtain the dimensions in lines/columns.
If it works for all the other fonts, how could it fail for FixedSys? This will take a bit of digging to uncover.
George
|
|
|
Post by Jo on Jan 14, 2014 14:11:16 GMT -5
Hi !
Now I've tested V7.1 on XP and it did also grow with FixedSys.
I did not install your raster fonts (yet), but tried with other font (Courier, Consolas, ...) and after some switching (no restart) some growing occurred, even with some other font.
Now I'll install Your fonts ...
Jo
|
|
|
Post by George on Jan 14, 2014 15:39:49 GMT -5
Hi Jo / Robert As Robert is well aware, this last version (7.1) contained some significant re-writing of the screen sizing logic to try and eliminate a whole bunch of 'fudge factors' that were being used to recalculate things when the screen was resized by stretching. It took a while to wade through a lot of "I wonder why it was coded THAT way', and we did end up with a lot cleaner and understandable code.
Nothing was basically wrong, it just appears that the metrics for FixedSys just happen to create some odd rounding errors in the various calculations. I've ended up adding back one truncation operation which was removed as an "I don't see the point" piece of code. Somewhere in the past the need for it was determined, but not remembered. So now it's back in and I think we're back working.
This fix will be in the upcoming fix release.
George
|
|
|
Post by Jo on Jan 14, 2014 16:21:04 GMT -5
So, now I'm using Raster - and like it, thanks. Also tried IBM3270 and Consolas, but both had the same Problem as FixedSys.
Jo
|
|