I am an old FoxPro DOS 2.6 programmer, and a new VFP 9.0 one. I also recently moved from an XP Pro work machine to a Windows 7 Home one.
I am trying to convert some programs that rely on the fixed-width (monospaced) fonts with boxes and borders (MSDOS codepage 437).
I found several congenial fonts and set up a table for my programs' users to select and try fonts.
The font changes failed - I got the type size I wanted, but not the typeface. (Windows 7 helpfully changed that to its default Arial.) Confusingly, Foxpro was correctly showing the selected font name when I output _screen.fontname .
I finally figured out that trailing spaces were confusing the font selection. "Foxfont" and "Foxfont " are not the same thing. Using ALLTRIM() on the font name data from my file solved the problem.
May this post save someone some time and trouble...
I am trying to convert some programs that rely on the fixed-width (monospaced) fonts with boxes and borders (MSDOS codepage 437).
I found several congenial fonts and set up a table for my programs' users to select and try fonts.
The font changes failed - I got the type size I wanted, but not the typeface. (Windows 7 helpfully changed that to its default Arial.) Confusingly, Foxpro was correctly showing the selected font name when I output _screen.fontname .
I finally figured out that trailing spaces were confusing the font selection. "Foxfont" and "Foxfont " are not the same thing. Using ALLTRIM() on the font name data from my file solved the problem.
May this post save someone some time and trouble...