On Mon, 9 Feb 2004 10:13, Huw D M Davies wrote: > Interesting. Any chance of a regression test that shows this behaviour?
The attached file demonstrates the bug, but it seems I misdescribed the bug. The bug actually entails Windows returning absurdly wide widths for some strings when printing to a postscript printer. A consequence of this is that if you are doing your own word-wrapping you sometimes end up with infinite lines each containing zero characters when printing to a Postscript printer or performing a WYSIWYG preview matched to a Postscript printer unless you detect and compensate for the bug. The attached example should demonstrate it on Windows 2000 if the default printer is a postscript printer. C file and sample output included.
printer "Canon LBP-1760 PS" acceptable range is < 553.333333 desktop text size = (8, 16) printer text size = (41, 82), ratio to desktop is 512.500000 desktop text size = (2048, 16) printer text size = (9216, 82), ratio to desktop is 450.000000 desktop text size = (700, 16) printer text size = (72599, 82), ratio to desktop is 10371.285714 A=49 B=49 C=53 D=53 E=49 F=45 G=58 H=53 I=21 J=37 K=49 L=41 M=4096 N=53 O=58 P=49 Q=58 R=53 S=49 T=4096 U=53 V=49 W=4096 X=4096 Y=4096 Z=45 =21 a=41 b=41 c=37 d=41 e=41 f=4096 g=4096 h=41 i=16 j=4096 k=4096 l=16 m=4096 n=41 o=41 p=41 q=4096 r=25 s=37 t=21 u=41 v=4096 w=4096 x=4096 y=4096 z=36 =21 `=25 1=41 2=41 3=41 4=41 5=41 6=41 7=41 8=41 9=41 0=41 -=25 ==43 [=21 ]=21 ;=21 '=14 ,=21 .=21 /=21 ~=43 !=4096 @=75 #=41 $=41 %=66 ^=4096 &=49 *=29 (=25 )=25 _=41 +=43 {=25 }=25 :=21 "=26 <=43 >=43 ?=41 32 21 72599 33 4096 72599 34 26 72599 35 41 72599 36 41 72599 37 66 72599 38 49 72599 39 14 72599 40 25 72599 41 25 72599 42 29 72599 43 43 72599 44 21 72599 45 25 72599 46 21 72599 47 21 72599 48 41 72599 49 41 72599 50 41 72599 51 41 72599 52 41 72599 53 41 72599 54 41 72599 55 41 72599 56 41 72599 57 41 72599 58 21 72599 59 21 72599 60 43 72599 61 43 72599 62 43 72599 63 41 72599 64 75 72599 65 49 72599 66 49 72599 67 53 72599 68 53 72599 69 49 72599 70 45 72599 71 58 72599 72 53 72599 73 21 72599 74 37 72599 75 49 72599 76 41 72599 77 4096 72599 78 53 72599 79 58 72599 80 49 72599 81 58 72599 82 53 72599 83 49 72599 84 4096 72599 85 53 72599 86 49 72599 87 4096 72599 88 4096 72599 89 4096 72599 90 45 72599 91 21 72599 92 21 72599 93 21 72599 94 4096 72599 95 41 72599 96 25 72599 97 41 72599 98 41 72599 99 37 72599 100 41 72599 101 41 72599 102 4096 72599 103 4096 72599 104 41 72599 105 16 72599 106 4096 72599 107 4096 72599 108 16 72599 109 4096 72599 110 41 72599 111 41 72599 112 41 72599 113 4096 72599 114 25 72599 115 37 72599 116 21 72599 117 41 72599 118 4096 72599 119 4096 72599 120 4096 72599 121 4096 72599 122 36 72599 123 25 72599 124 4096 72599 125 25 72599 126 43 72599
FT_Seek_Stream() { FT_Stream_Seek();} FT_Get_Short() { FT_Stream_GetShort();} FT_Get_Long() { FT_Stream_GetLong();} FT_Forget_Frame() { FT_Stream_ExitFrame();} FT_Access_Frame() { FT_Stream_EnterFrame();}