Alberto BARSELLA
2001-Feb-02 03:23 UTC
Font problems (wrong font is used) (sorry for the delay Gerard!!)
nomailthankyoug.patel@wanadoo.fr (gerard patel) writes:> The font mapper is something really weird under Wine; most of > its weirdness comes from that it's emulating Windows behaviour.How reassuring :)> I use stars to test Wine, and definitely the app does not > use this strange font on my system > It only displays 'the production queue on Backwele is empty' and I'll > be hard pressed to make it display something else, but it's displayed > with Ms Sans Serif.I don't understand: what do you mean that it only displays "the ....". The game doesn't run at all?> I imported this font (and only this one) from my Winnt install > with fnt2bdf. Nothing has changed in the display from this app since > several months at least.I cannot remember which version of wine broke the font. It may also be that it was the introduction of some font which broke it down. But I don't change my font setup often (= almost never), since I basically have no use for fancy fonts besides playing with the gimp.> >How can I extract the "used fonts" from a > >-debugmsg +font trace? > > I am not quite sure...Ok, I looked at what you posted and I'm a bit lost. I'm not sure I can understand how you use the information on one part to find the rest. I've tried to find something, anyway. Following your approach:> Call USER.85: DRAWTEXT(0x0048,0x03975304 "The production queue on > Bakwele is empty.",0x0029,0397:a39c,0x0c10) > ret=02a7:071b ds=0397I don't have this, but I grabbed the GetTextMetricsA which appears just before the buggy message: . trace:font:GetTextMetricsA text metrics: . Weight = 400 FirstChar = 000 AveCharWidth = 7 . Italic = 0 LastChar = 255 MaxCharWidth = 15 . UnderLined = 0 DefaultChar = 000 Overhang = 0 . StruckOut = 0 BreakChar = 032 CharSet = 0 . PitchAndFamily = 09 . -------------------- . InternalLeading = 3 . Ascent = 10 . Descent = 3 . Height = 13> I used 'pitchandfamily' : searched from the beginning of the > trace file :Ok, I went to the top and grepped for that PitchAndFamily value: . trace:font:XFONT_RealizeFont physfont 1 . trace:font:GetTextMetricsA text metrics: . Weight = 400 FirstChar = 000 AveCharWidth = 7 . Italic = 0 LastChar = 255 MaxCharWidth = 15 . UnderLined = 0 DefaultChar = 000 Overhang = 0 . StruckOut = 0 BreakChar = 032 CharSet = 0 . PitchAndFamily = 09 . -------------------- . InternalLeading = 3 . Ascent = 10 . Descent = 3 . Height = 13> and : > trace:font:LFD_ComposeLFD LFD(uRelax=0): -windows-ms sans > serif-medium-r-normal-*-13-*-72-72-p-*-microsoft-cp1252 > trace:font:XFONT_RealizeFont physfont 0 > trace:font:X11DRV_FONT_SelectObject hfont=ffed > trace:font:XFONT_MatchDeviceFont (0) 'Ms Sans Serif' h=-11 weight=400 > trace:font:XFONT_MatchDeviceFont found facename 'Ms Sans Serif' > trace:font:XFONT_Match [ 11pt h=13 w=6 Normal ] > trace:font:XFONT_Match returning 0 > trace:font:LFD_ComposeLFD LFD(uRelax=0): -windows-ms sans > serif-medium-r-normal-*-13-*-72-72-p-*-microsoft-cp1252 > trace:font:XFONT_RealizeFont physfont 1Here I don't understand: what did you use to link the two pieces: the "XFONT_RealizeFont physfont 1"? I have a bazillion of them.... :(( I tried to look for something "similar" to what you have here moving up in the file. Some 20 lines above the "PitchAndFamily" thing I have: . trace:font:LFD_ComposeLFD LFD(uRelax=0): -macromedia-babelfish-medium-r-no . rmal-*-16-*-100-100-p-*-ascii-0 . trace:font:XFONT_RealizeFont physfont 0 . trace:font:X11DRV_FONT_SelectObject hfont=ffed . trace:font:XFONT_MatchDeviceFont (0) 'Babelfish' h=-11 weight=400 . trace:font:XFONT_MatchDeviceFont found facename 'Babelfish' . trace:font:XFONT_Match [ 48pt h=80 w=45 Normal ] . trace:font:XFONT_Match returning 0 . trace:font:LFD_ComposeLFD LFD(uRelax=0): -macromedia-babelfish-medium-r-no . rmal-*-16-*-100-100-p-*-ascii-0 . trace:font:XFONT_RealizeFont physfont 1 I've fired up the gimp to see how this babelfish font looks like: it definitely looks identical to the one used in the message window. It seems like I followed the right procedure, but now the question I have is: why this font gets used? Sometimes I wonder why fonts must be this complicated :((( Bye, Alberto -- Alberto BARSELLA PGP fingerprint = 13 3F 22 D2 0B 0A D3 25 F1 89 FE B5 82 AD 75 2A ** Beliefs are dangerous. Beliefs allow the mind to stop functioning. A non-functioning mind is clinically dead. Believe in nothing... **
gerard patel
2001-Feb-02 06:05 UTC
Font problems (wrong font is used) (sorry for the delay Gerard!!)
On 02 Feb 2001 10:23:53 +0100, Alberto BARSELLA <ishark@lsh01.univ-lille1.fr> wrote:> >> I use stars to test Wine, and definitely the app does not >> use this strange font on my system >> It only displays 'the production queue on Backwele is empty' and I'll >> be hard pressed to make it display something else, but it's displayed >> with Ms Sans Serif. > >I don't understand: what do you mean that it only displays "the >....". The game doesn't run at all?It loads all right, it answers to commands, the only problem is that the person issuing the commands don't know how to play ;-)>Here I don't understand: what did you use to link the two pieces: the >"XFONT_RealizeFont physfont 1"?Huh, it's mostly guess ;-)>. trace:font:LFD_ComposeLFD LFD(uRelax=0): -macromedia-babelfish-medium-r-no >. rmal-*-16-*-100-100-p-*-ascii-0 >. trace:font:XFONT_RealizeFont physfont 0 >. trace:font:X11DRV_FONT_SelectObject hfont=ffed >. trace:font:XFONT_MatchDeviceFont (0) 'Babelfish' h=-11 weight=400 >. trace:font:XFONT_MatchDeviceFont found facename 'Babelfish' >. trace:font:XFONT_Match [ 48pt h=80 w=45 Normal ] >. trace:font:XFONT_Match returning 0 >. trace:font:LFD_ComposeLFD LFD(uRelax=0): -macromedia-babelfish-medium-r-no >. rmal-*-16-*-100-100-p-*-ascii-0 >. trace:font:XFONT_RealizeFont physfont 1 > >I've fired up the gimp to see how this babelfish font looks like: it >definitely looks identical to the one used in the message window. >It seems like I followed the right procedure, but now the question I >have is: why this font gets used?XFONT_Match is doing the search; it returns an evaluation of the closeness of the asked font and the evaluated font (called 'penalty' in the Wine code). The lower the evaluation is, the better the match. As you can see, in this case it returns 0 - a score difficult to best. As of why, it's not easy - at least for me. At the very least, I would require a complete trace with +relay,+font - and time. A good deal of time. As a work around, how about removing this font from your system ? Gerard