Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Selecting Printer Fonts not included in windows enum

Selecting Printer Fonts not included in windows enum

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++workspace
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mcdirge
    wrote on last edited by
    #1

    Old method with PCL could select it using a font ID. File output direct to the port. However now I am using a Printer DC and I dont have a CFont object to select. How can I select the printer font in an MFC environment?

    V 1 Reply Last reply
    0
    • M mcdirge

      Old method with PCL could select it using a font ID. File output direct to the port. However now I am using a Printer DC and I dont have a CFont object to select. How can I select the printer font in an MFC environment?

      V Offline
      V Offline
      valikac
      wrote on last edited by
      #2

      You can select a printer font inside OnBeginPrint() and OnPrint(). pDC->SelectObject(theFont); Kuphryn

      M 1 Reply Last reply
      0
      • V valikac

        You can select a printer font inside OnBeginPrint() and OnPrint(). pDC->SelectObject(theFont); Kuphryn

        M Offline
        M Offline
        mcdirge
        wrote on last edited by
        #3

        As I said.. I do not have a CFont object to select. The font is only in the printers memory. It is not a TrueType windows font and therfore cannot be loaded into a CFont object.

        V 1 Reply Last reply
        0
        • M mcdirge

          As I said.. I do not have a CFont object to select. The font is only in the printers memory. It is not a TrueType windows font and therfore cannot be loaded into a CFont object.

          V Offline
          V Offline
          valikac
          wrote on last edited by
          #4

          Interesting. Kuphryn

          A 1 Reply Last reply
          0
          • V valikac

            Interesting. Kuphryn

            A Offline
            A Offline
            ana_v123
            wrote on last edited by
            #5

            Look for Article on Microsoft site -> "How To Use Printer Device Fonts" It might be of help, if you need to use Printer Fonts.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups