Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Hindi font support for Qt/qml in linux
Qt 6.11 is out! See what's new in the release blog

Hindi font support for Qt/qml in linux

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 1.4k 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.
  • S Offline
    S Offline
    sakshi
    wrote on last edited by
    #1

    I am trying to create an application with hindi font support. Text written in english is not displayed in hindi. But If i write it in hindi it is displaying in hindi.

    FontLoader { id: hindi
    source: "/home/sakshi/development/adt-bundle-linux-x86/sdk/platforms/android-17/data/fonts/DroidSansDevanagari-Regular.ttf";
    

    }

    Text{
    x: 149
    y: 348
    width: 428
    height: 44
    text: "\nजोड़े आपको दुनिया से"
    font.family: hindi.name
    }

    with this text will be displayed as जोड़े आपको दुनिया से

    FontLoader { id: hindi;
    source: "/home/sakshi/development/adt-bundle-linux-x86/sdk/platforms/android-17/data/fonts/DroidSansDevanagari-Regular.ttf";
    }

    Text{
    x: 149
    y: 348
    width: 428
    height: 44
    text: "\nWelcome"
    //text: hindi.status == FontLoader.Ready ? 'Loaded' : 'Not loaded'
    font.family: hindi.name
    }

    in this case output is "welcome". How can i display the fonts in Hindi. if i dont have the .ttf file where should i copy the file? how to display my app on the screen in hindi?

    sakshi

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved