[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice
Subject:    Re: Info on Squashed PS Fonts
From:       Thomas Zander <zander () planescape ! com>
Date:       2001-12-14 10:05:32
[Download RAW message or body]

It seems he run into the :unscaled option.
the behaviour he is seeing is perfectly logical, and quite correct;

Let me explain.

When you zoom bitmap fonts (or better said; render them in higher pointsize)
then you can run into the problem that there are no bitmap fonts for the
size you are requesting.
Bitmaps of Times mostly go to 30pt or something.

Normally X scales the fonts for you, so you get (ugly) fonts which are of
the right size (well sorta...).
This behavior is not wanted anymore since we have vector fonts, and the
correct usage of bitmap fonts is only for quick on screen type. Fonts at
Other places, especially for print, should be vector fonts.

If you write a little program getting a font and then ask the width of the
font you can see that with bitmap fonts it sometimes does not get bigger.
See attachment 1.
When you remove the option in your XF86Config which tells X to not scale 
you can get larger bitmap fonts.
-    FontPath   "/usr/X11R6/lib/X11/fonts/misc/:unscaled"
+    FontPath   "/usr/X11R6/lib/X11/fonts/misc/"

after this; see attachment 2.

I am searching for a solution which simply does not allow the user to select
bitmap fonts at certain times. Perhaps when this option is enabled, or simply
in all applications which use the fonts to print as well.

All in all; bitmap fonts are _evil_ !!

On Fri, Dec 14, 2001 at 01:35:58AM -0600, Jonathan wrote:
> 
> Hi:
> 
>  I thought I would forward these experiments that Dr. Werner Stille did 
> concerning squashed fonts. Evidently this problem is not restricted to 
> Koffice apps.  Perhaps his comments can be of use to others dealing with this 
> problem. In the case of Kpl, reducing the zoom factor from 10 to 1 solved the 
> problem, to a certain extent.
> 
> ----------  Forwarded Message  ----------
> 
> Subject: Re: SOLVED Re: Printing problems with KPL-2.3.0
> Date: Thu, 13 Dec 2001 13:03:54 +0100
> From: Werner Stille <stille@uni-freiburg.de>
> To: Jonathan <j.e.drews@worldnet.att.net>
> 
> 
> 
> Hello Jonathan,
> 
> thank you for the information. In between I did some further experiments
> and found out that I have to correct myself:
> 
> It does not seem to be a problem directly connected to a specific Qt 2.3
> version. I now found that Kpl's printout is ok when I use SuSE 7.0 with
> XFree86-4.02 and Qt-2.3.x with x = 0..2. The printout was not ok when I
> used SuSE 7.3 with XFree86-4.10 and Qt-2.3.x with x = 0..2.
> 
> The problem also is not restricted to KDE applications: I wrote a small
> Qt only program, which draws some text using different font and
> different point sizes on the screen (i.e. on a QWidget) and on the
> printer (using QPrinter). The times font was never represented
> correctly in the printout; other fonts appear bunched up when using
> large point sizes, but only when I used SuSE 7.3, with SuSE 7.0
> they look ok. The screen output was ok everytime.
> 
> I still do not know the source of the problem. In the different
> SuSE versions they use (slightly) different XFree86 versions, but
> I don't know whether this should affect printer output or not.
> Another difference: Beginning with SuSE 7.3 they use a new ghostscript
> version.
> 
> One remark to the printout quality obtained after setting pFactor to 1
> in line 148 of kgraph.cpp: The resolution is poor. You can see that
> for example when you printout demo5.plo of the Kpl examples. The
> flat maximum of the green curve then does not look very well in
> the printout.
> 
> 
> 
> Cheers,
> 
> Werner
> 
> -------------------------------------------------------
> -- 
> 						Cheers,
> 
> 						Jonathan						
> 
-- 
Thomas Zander                                            zander@earthling.net
The only thing worse than failure is the fear of trying something new

["qfont-debug.txt" (text/plain)]

Width of 'M' in "times"
size 001: width=8 height=15
size 006: width=8 height=15
size 011: width=13 height=24
size 016: width=22 height=35
size 021: width=22 height=37
size 026: width=30 height=48
size 031: width=30 height=48
size 036: width=30 height=48
size 041: width=30 height=48
size 046: width=30 height=48
size 051: width=30 height=48
size 056: width=30 height=48
size 061: width=30 height=48
size 066: width=30 height=48
size 071: width=30 height=48
size 076: width=30 height=48
size 081: width=30 height=48
size 086: width=30 height=48
size 091: width=30 height=48
size 096: width=30 height=48
size 101: width=30 height=48
size 106: width=30 height=48
size 111: width=30 height=48
size 116: width=30 height=48
size 121: width=30 height=48
size 126: width=30 height=48
size 131: width=30 height=48
size 136: width=30 height=48
size 141: width=30 height=48
size 146: width=30 height=48
size 151: width=30 height=48
size 156: width=30 height=48
size 161: width=30 height=48
size 166: width=30 height=48
size 171: width=30 height=48
size 176: width=30 height=48
size 181: width=30 height=48
size 186: width=30 height=48
size 191: width=30 height=48
size 196: width=30 height=48
size 201: width=30 height=48
size 206: width=30 height=48
size 211: width=30 height=48
size 216: width=30 height=48
size 221: width=30 height=48
size 226: width=30 height=48
size 231: width=30 height=48
size 236: width=30 height=48
size 241: width=30 height=48
size 246: width=30 height=48
size 251: width=30 height=48
size 256: width=30 height=48
size 261: width=30 height=48
size 266: width=30 height=48
size 271: width=30 height=48
size 276: width=30 height=48
size 281: width=30 height=48
size 286: width=30 height=48
size 291: width=30 height=48
size 301: width=30 height=48
size 296: width=30 height=48

Width of 'M' in "arial"
size 001: width=11 height=15
size 006: width=7 height=12
size 011: width=11 height=21
size 016: width=19 height=31
size 021: width=23 height=41
size 026: width=29 height=50
size 031: width=35 height=59
size 036: width=41 height=69
size 041: width=47 height=79
size 046: width=53 height=88
size 051: width=59 height=98
size 056: width=65 height=107
size 061: width=71 height=117
size 066: width=77 height=128
size 071: width=81 height=136
size 076: width=87 height=145
size 081: width=95 height=157
size 086: width=99 height=164
size 091: width=105 height=174
size 096: width=111 height=183
size 101: width=117 height=193
size 106: width=123 height=203
size 111: width=127 height=212
size 116: width=133 height=222
size 121: width=139 height=231
size 126: width=147 height=241
size 131: width=152 height=250
size 136: width=158 height=260
size 141: width=164 height=269
size 146: width=170 height=279
size 151: width=176 height=288
size 156: width=181 height=298
size 161: width=187 height=308
size 166: width=193 height=317
size 171: width=199 height=326
size 176: width=205 height=335
size 181: width=209 height=344
size 186: width=215 height=354
size 191: width=221 height=363
size 196: width=227 height=373
size 201: width=233 height=382
size 206: width=239 height=392
size 211: width=245 height=401
size 216: width=251 height=411
size 221: width=257 height=421
size 226: width=262 height=430
size 231: width=269 height=440
size 236: width=275 height=451
size 241: width=280 height=459
size 246: width=286 height=468
size 251: width=292 height=477
size 256: width=298 height=489
size 261: width=304 height=498
size 266: width=309 height=506
size 271: width=314 height=516
size 276: width=320 height=526
size 281: width=326 height=535
size 286: width=332 height=544
size 291: width=338 height=554
size 296: width=344 height=564

["qfont-wo-unscaled-debug.txt" (text/plain)]

Width of 'M' in "times"
size 001: width=1 height=2
size 006: width=8 height=15
size 011: width=13 height=24
size 016: width=22 height=35
size 021: width=26 height=41
size 026: width=30 height=48
size 031: width=39 height=63
size 036: width=45 height=73
size 041: width=51 height=82
size 046: width=58 height=93
size 051: width=64 height=103
size 056: width=70 height=113
size 061: width=77 height=124
size 066: width=83 height=134
size 071: width=89 height=143
size 076: width=96 height=154
size 081: width=102 height=164
size 086: width=107 height=173
size 091: width=114 height=182
size 096: width=120 height=193
size 101: width=126 height=203
size 106: width=133 height=213
size 111: width=139 height=224
size 116: width=145 height=233
size 121: width=152 height=243
size 126: width=158 height=253
size 131: width=164 height=264
size 136: width=171 height=273
size 141: width=177 height=283
size 146: width=183 height=294
size 151: width=190 height=304
size 156: width=196 height=313
size 161: width=202 height=324
size 166: width=209 height=334
size 171: width=215 height=344
size 176: width=220 height=353
size 181: width=227 height=364
size 186: width=233 height=373
size 191: width=240 height=383
size 196: width=246 height=394
size 201: width=252 height=403
size 206: width=258 height=414
size 211: width=264 height=423
size 216: width=271 height=434
size 221: width=277 height=444
size 226: width=284 height=455
size 231: width=290 height=464
size 236: width=296 height=475
size 241: width=302 height=484
size 246: width=309 height=495
size 251: width=315 height=505
size 256: width=321 height=514
size 261: width=328 height=525
size 266: width=333 height=534
size 271: width=339 height=543
size 276: width=346 height=554
size 281: width=352 height=564
size 286: width=358 height=574
size 291: width=365 height=584
size 296: width=371 height=593


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic