Results 1 to 3 of 3

Thread: Qt Platform Abstraction support for truetype fonts

  1. #1
    Join Date
    Sep 2012
    Posts
    3
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Qt Platform Abstraction support for truetype fonts

    Hi

    I'm porting Qt 4.8.2 to a new embedded linux platform using QPA. I have configured, built, implemented QPlatformIntegration and other classes and things appear to work.

    However: I can't get TTF fonts to work, only QPF2. My understanding is that I should instantiate the class "QBasicUnixFontDatabase()" and return it from "QPlatformIntegration::fontDatabase()". But freetype and QBasicUnixFontDatabase is not compiled into the project and I cannot find a configure option to do so. I currently configure as follows:

    ./configure -qpa -arch mips -xplatform qpa/linux-pnp4200-mips-uclibc-g++ -big-endian -host-big-endian -depths 32 -no-sse2 -nomake demos -nomake examples -no-largefile -no-accessibility -system-freetype -opensource -verbose -no-opengl -make libs -no-xmlpatterns -no-exceptions -no-qt3support -no-script -no-scripttools -no-webkit -release -prefix ../qt-install -confirm-license "$@"

    Does anyone have experience with getting TTF font support whilst using QPA?
    Last edited by Wotsgreen; 3rd September 2012 at 15:25.

  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: Qt Platform Abstraction support for truetype fonts

    Try -fontconfig (provided you have fontconfig available, of course).

    Also read this:

    http://labs.qt.nokia.com/2010/09/02/...in-lighthouse/
    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
    Sep 2012
    Posts
    3
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Qt Platform Abstraction support for truetype fonts

    Thanks for the reply.

    I found the problem was that I'm doing the integration code in the main application (i.e. the code which only links with the Qt .so files). QBasicUnixFontDatabase is not an exported class, so I could not instantiate the class from integration code.

Similar Threads

  1. Replies: 0
    Last Post: 22nd February 2012, 13:26
  2. How to support new fonts in Qt, using .ttf file?
    By savaliya_ambani in forum Qt for Embedded and Mobile
    Replies: 6
    Last Post: 2nd May 2011, 07:45
  3. Korean fonts support in QtEmbedded 4.5
    By Beppe in forum Qt Programming
    Replies: 0
    Last Post: 11th November 2009, 16:44
  4. Abstraction required in Class
    By salmanmanekia in forum Qt Programming
    Replies: 12
    Last Post: 29th July 2008, 17:57
  5. Replies: 4
    Last Post: 3rd April 2006, 08:22

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.