Announcement

Collapse
No announcement yet.

Well, I've finally recycled enough aluminum cans...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Well, I've finally recycled enough aluminum cans...

    ...to spring for a copy of CCv4.04.

    I upgraded mainly to take advantage of the XPRINT capabilities. Ran across a bit of a quandry.

    Currently, I am printing out column based (spread sheet style) text files.

    With non-proportional fonts, the columns snake down the page of the screen. With proportional, the columns are straight and clean. The thing is, I don't want to count on all computers/printers having one particular font.

    There are some things I can think of to print mono-spaced fonts cleanly:

    1. Get a list of mono-spaced fonts and let the user select one.
    2. Turn non-proportional spacing off and go mono-spaced for the duration of the print job.
    3. ??????

    Is either idea do-able? Can't find anything in the help files or on the board.
    There are no atheists in a fox hole or the morning of a math test.
    If my flag offends you, I'll help you pack.

  • #2
    1. Get a list of mono-spaced fonts and let the user select one.
    2. Turn non-proportional spacing off and go mono-spaced for the duration of the print job.
    3. ??????


    Is either idea do-able? Can't find anything in the help files or on the board.
    1. EnumFonts WinAPI function. Gives you a LOGFONT structure for each installed font; see lfPitchandFamily member values for proportionality info.

    2. No you may not turn proportionality on and off within a font. You may, however, freely change between proportional and non-proportional fonts.

    3 . !!!!!


    FWIW, "Courier New" monospaced font is guaranteed available on all Windows systems.
    Michael Mattias
    Tal Systems (retired)
    Port Washington WI USA
    [email protected]
    http://www.talsystems.com

    Comment


    • #3
      Monospace Font

      I Agree with Michael,

      The best way to get reliable monospace print is by using
      Courier new.
      That font is always available in all Windows and you will save
      a lot of time by simply using it all the time.
      Forget about fancy fonts to line up columns but you can still
      use them for heading or comments.
      Old QB45 Programmer

      Comment


      • #4
        >FWIW, "Courier New" monospaced font is guaranteed available on all Windows systems.

        Although I've posted this many times before, it's probably worth a reminder...

        Also guaranteed available on all Windows' systems:
        "Arial" (proportional sans serif)
        "Times New Roman" ( proportional, serifed)
        "Symbol" ( weird characters. I don't use it but it is available)

        Also: for display on the screen or printing you can get a handle to default monospaced and proportional fonts with GetStockObject (%SYSTEM_FIXED_FONT) or GetStockObject (%SYSTEM_FONT) and some other variations of same.

        While these have always worked well for me on the screen, results with printers have been "mixed" so I'd stick with named fonts if you need to support "any Windows' printer."

        MCM
        Michael Mattias
        Tal Systems (retired)
        Port Washington WI USA
        [email protected]
        http://www.talsystems.com

        Comment

        Working...
        X