Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ncar!gatech!mcnc!decvax!ima!cfisun!adam From: adam@cfi.COM (adam) Newsgroups: comp.windows.ms Subject: Fonts and screen resolution Message-ID: <499@cfisun.UUCP> Date: 9 May 89 19:03:29 GMT Reply-To: adam@cfi.COM (Adam Marx -CFI-) Organization: Consumer Financial Institute, Waltham, Mass. Lines: 28 We have written a Windows application that draws a fair amount of text, and does it in several different sizes, styles, and faces. It looks great on our AT with an EGA display. However, when we run it on other machines (i.e. a '386 running Windows/386 and a VGA, and a zenith laptop with a mono CGA) the fonts come out in unexpected sizes and styles. This is especially distressing when it happpens to items like the values on our graph axes. Question: Is there a way to select and use fonts which will preserve port- ability between displays? Currently, I'm using the MM_TEXT map mode, and getting the fonts I want by partially populating a LOGFONT struct and using CreateFontIndirect(). Also, in what is probably a related problem, I have found that if I start my application, then bring up Excel, and then put Excel away, when my application redisplays it shows only garbage (black splotches where the text should be) for certain of my fonts. This does not go away when I cause a repaint of the screen; only re-running my app will fix this. Any suggestions? ===================================================================== "Yes ma'am, I do Windows." -- Adam Marx, The Consumer Financial Institute, Waltham, MA 617-899-6500 {decvax!yale|allegra|ihnp4|ucbvax!cbosgd}!ima!cfisun!adam adam@CFI.COM