Scattered font

This is a discussion on Scattered font within the C Programming forums, part of the General Programming Boards category; I have transparent background in my application and fonts are scattered quite badly against dark desktop backgrounds. I have set ...

  1. #1
    SleepWalker tjohnsson's Avatar
    Join Date
    Apr 2004
    Posts
    70

    Question Scattered font

    I have transparent background in my application and fonts are
    scattered quite badly against dark desktop backgrounds.

    I have set TransparencyKey same as my form background and
    fonts seems to use same background color as well, which is not
    transparent, so the fonts looks like hell...

    I replaced my background color near font color but it didn't look good at all.

    Here's how i draw my component...

    Code:
    ...
    	BufferedGraphicsContext ^context = BufferedGraphicsManager::Current;
    	BufferedGraphics ^buffer = context->Allocate (this->CreateGraphics (), this->DisplayRectangle);
    	buffer->Graphics->FillRectangle (static_cast<Brush ^>(gcnew SolidBrush (this->BackColor)), this->DisplayRectangle);
    	buffer->Graphics->TextRenderingHint = System::Drawing::Text::TextRenderingHint::ClearTypeGridFit;
    	writer->write (buffer, 7, 6, 30, 15); // Component drawing procedure
    
    	buffer->Render ();
    ...
    Text is written to the buffer using Graphics:rawString (...)

    Here's small screenshot as an attachment.

    Anyone have solutions for this ?
    Attached Images Attached Images  
    -- Add Your Signature Here --

  2. #2
    cwr
    cwr is offline
    Registered Luser cwr's Avatar
    Join Date
    Jul 2005
    Location
    Sydney, Australia
    Posts
    868
    (a) this is a C forum, but you are speaking C++
    (b) the issue is to do with your non-standard library, not the language.

  3. #3
    SleepWalker tjohnsson's Avatar
    Join Date
    Apr 2004
    Posts
    70
    Quote Originally Posted by cwr
    (a) this is a C forum, but you are speaking C++
    (b) the issue is to do with your non-standard library, not the language.
    Oops... I tought i posted this to other forum...
    -- Add Your Signature Here --

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,485

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. DirectX | Drawing text
    By gavra in forum Game Programming
    Replies: 4
    Last Post: 06-08-2009, 12:23 AM
  2. problem with my font manager
    By hannibar in forum C Programming
    Replies: 1
    Last Post: 03-07-2006, 07:03 AM
  3. Scattered font
    By tjohnsson in forum Windows Programming
    Replies: 0
    Last Post: 03-03-2006, 02:55 AM
  4. destroywindow() problem
    By algi in forum Windows Programming
    Replies: 6
    Last Post: 03-27-2005, 10:40 PM
  5. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 09:18 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21