Results 1 to 3 of 3

Thread: Non-Antialias fonts

  1. #1
    Join Date
    Aug 2009
    Posts
    8
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Non-Antialias fonts

    Hi I want to have non-Antialias fonts used in my embedded application which is using QWS on linux embedded.
    at present setStyleStrategy(QFont::NoAntialias) does not work and Trolls has already loged a bug for this.

    I was just curious is there any work around? some people suggests to use pixmap based font which can be generated by Qt tool "makepf" which generates qpf2 fonts. But I did that too but no effect those fonts are also Antialiased fonts and i want non-antialiased.
    I treid to generate these fonts on my X11 and window machine both but non of them has non-antialias effect.

    Does any one know How to generate non-antialias font? or what could be the workaround for my problem??

    Any help will be highly appreciated.

    Thanx,
    Efan

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Non-Antialias fonts

    For things you paint yourself you can probably clear the QPainter::TextAntialiasing flag from the painter.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Aug 2009
    Posts
    8
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Non-Antialias fonts

    Hi,
    I am not actually painting any thing, ( i have not re implemented any paint method) my application is simply

    int main(...)
    {
    QApplication a(argc,argv);
    QLabel le("Hello World");
    le.show();
    return a.exec();
    }

    what I want here is my application should pick up a non-antialias font from lib/fonts folder.
    and there in that folder i want to have non-antialiased fonts (which could be generated by makepf)

    But I really dont know how to have non-antialiased fonts generated from makepf

Similar Threads

  1. About Fonts
    By QbelcorT in forum Qt Programming
    Replies: 1
    Last Post: 2nd April 2009, 17:58
  2. How to use qpf fonts
    By yagabey in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 18th September 2008, 07:56
  3. Configure antialias for Qt 4 programs (Debian Testing)
    By alecs1 in forum General Discussion
    Replies: 0
    Last Post: 10th April 2008, 22:38
  4. Logical fonts?
    By sdfisher in forum Qt Programming
    Replies: 1
    Last Post: 1st March 2007, 13:01
  5. Help!! cannot load Fonts!
    By gattogio in forum Qt Programming
    Replies: 5
    Last Post: 24th February 2007, 13:37

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.