Fonts, ? and set alternate

Hi;

I have lots of older code that uses commands and set alternate to create a text file and then it uses modify command to view the file.

I have noticed that on my development PC, this created a file with Fixedsys font. On the installation pcs the font is "Courier".

Is there a way to determine what font will be used when issuing commands to a set alte file

I know that I can use the font clause in the command itself but I was wondering what determines the default font used.

Thank you all for puting up with my "oldie" questions.


Answer this question

Fonts, ? and set alternate

  • Vaish

    Andy;

    Thank you so much for all your help. I feel like Mcflie senior from "back to the future" going "This is good stuff".

  • Xancholy

    Your what You mustn't change the font settings on and end-user's machine!

    If you want this to display in a given font at run time, use DEFINE WINDOW (which includes a FONT clause) and then use MODIFY FILE nnnn WINDOW xxxx

    like this:

    DEFINE WINDOW textdisp FROM 2,1 TO 13,75 TITLE 'TextFile' FONT 'Tahoma', 12 CLOSE FLOAT GROW ZOOM
    MODIFY FILE mytext.txt WINDOW textdisp NOWAIT



  • stangnut

    You could always update the registry in that case...

    HKEY_CURRENT_USER\Software\Microsoft\VisualFoxPro\9.0\Options\IDE

    Look for the "TextFont" setting....



  • Dagz

    Andy;

    This won't do much for my runtime install though... Correct

    Thanks.



  • Jonas Beckeman

    I don't even know how to change my midy command font...

    I would love to know how to change my default font. No idea.



  • doctorx0079

    TOOLS -> OPTIONS -> IDE Tab

    THere is a drop-down for "Specify Window/File Type"
    Choose "Text Files"
    Amend the settings to whatever you want!



  • tattoo

    Aleniko,

    I don't think the file is created with a font attribute. Maybe you changed your own modify command font


  • Lohic Beneyzet-Jouy

    Of course not. I wanted to change the default font for VFP on the machine. But the modi wind font would work too. thx.

  • Fonts, ? and set alternate