Results 1 to 2 of 2

Thread: FontLoader in QML - Not working on target board

  1. #1
    Join Date
    Dec 2011
    Posts
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default FontLoader in QML - Not working on target board

    Hello All,

    I had used FontLoader in QML to load the custom font (.ttf file). I am using this in order to show Russian language text on screen. It was working fine on Desktop application but I am facing issue when I run the same on my target board based on Linux. I had tried by placing the .ttf files in resource file also but in vain.

    FontLoader{
    id: cyrillicFont
    source: "ClearSans-Bold.ttf"
    }

    Text {
    text: "Английский"
    font.family: cyrillicFont.name
    }

    Error: FontLoader could not load the font (.ttf file path)

    Can someone help me out to make it work on the target board? Please clarify me if I am doing any thing wrong.

    Thanks in advance.

  2. #2
    Join Date
    Apr 2015
    Location
    West Sussex, England
    Posts
    8
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Re: FontLoader in QML - Not working on target board

    source: "ClearSans-Bold.ttf"

    Is the font in the base directory for your application? If not the full path will need to be specified. e.g. source: "/etc/fonts/ClearSans-Bold.ttf"

Similar Threads

  1. single board computer embeddede board, mini2440v2, sky2440v2
    By wujianwen in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 2nd November 2016, 07:29
  2. QLineEdit::Password mode not working on touch LCD , connected to ARM board.
    By savaliya_ambani in forum Qt for Embedded and Mobile
    Replies: 14
    Last Post: 21st August 2013, 05:56
  3. Not able to display unicode fonts on target board
    By krishnakishoreraju in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 3rd April 2013, 09:09
  4. Running QT application on Target board
    By vinithr in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 25th April 2012, 08:07
  5. No output on frame buffer (arm target board)
    By devendra in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 29th November 2006, 20:03

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.