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#
  4. Text smoothing in a single application

Text smoothing in a single application

Scheduled Pinned Locked Moved C#
4 Posts 2 Posters 1 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.
  • J Offline
    J Offline
    jremignanti
    wrote on last edited by
    #1

    Is anyone aware of a way to turn on the windows text-smoothing for one application (not globally from the control panel) I thought there might be an attribute or something in the SetStyle method but I haven't found anything. thanks, JR

    H 1 Reply Last reply
    0
    • J jremignanti

      Is anyone aware of a way to turn on the windows text-smoothing for one application (not globally from the control panel) I thought there might be an attribute or something in the SetStyle method but I haven't found anything. thanks, JR

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      FYI, this OS setting changes the algorithm used to display fonts in the system. It is not an application-specific thing, but a change in the algorithm that affects the entire font subsystem. If you want text smoothing or ClearType support in your application (like Word, Adobe Acrobat, et. al. have), you'll have to add support for it yourself. SetStyle won't because that controls window styles and is analogous SetWindowLong from the Platform SDK. When creating the underlying window handle, this corresponds to CreateParams that is returned and will be used in the call to CreateWindowEx.

      Microsoft MVP, Visual C# My Articles

      J 1 Reply Last reply
      0
      • H Heath Stewart

        FYI, this OS setting changes the algorithm used to display fonts in the system. It is not an application-specific thing, but a change in the algorithm that affects the entire font subsystem. If you want text smoothing or ClearType support in your application (like Word, Adobe Acrobat, et. al. have), you'll have to add support for it yourself. SetStyle won't because that controls window styles and is analogous SetWindowLong from the Platform SDK. When creating the underlying window handle, this corresponds to CreateParams that is returned and will be used in the call to CreateWindowEx.

        Microsoft MVP, Visual C# My Articles

        J Offline
        J Offline
        jremignanti
        wrote on last edited by
        #3

        So then how would I go about adding it myself?

        H 1 Reply Last reply
        0
        • J jremignanti

          So then how would I go about adding it myself?

          H Offline
          H Offline
          Heath Stewart
          wrote on last edited by
          #4

          See the Platform SDK for information on GDI and GDI+. From what I've seen, the .NET base class library doesn't support such a featre. As far as ClearType goes, I'm not sure were you can find resources but the best place to start would probably be http://www.microsoft.com/typography/[^].

          Microsoft MVP, Visual C# My Articles

          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