Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to set local fonts
Forum Updated to NodeBB v4.3 + New Features

How to set local fonts

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.1k 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
    sasireka
    wrote on last edited by
    #1

    hi all,
    how to set local fonts. I am trying with this code. this is working for english but not for "lohit tamil".

    @ ui->label1->setStyleSheet ("font: 40pt "Lohit Tamil";");
    ui->label1->setText("சென்னை");
    //ui->label1->setText("tamil");
    ui->label1->show();
    @

    .................................
    Thanks & Regards

    Sasi

    .................................
    Go Green

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Make sure your source file is encoded in UTF-8.

      (Z(:^

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sasireka
        wrote on last edited by
        #3

        how to check source file is encoded in UTF-8 or not.
        in Qt designer styleset "lohit tamil" is available.

        [quote author="sierdzio" date="1411547514"]Make sure your source file is encoded in UTF-8.[/quote]

        .................................
        Thanks & Regards

        Sasi

        .................................
        Go Green

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          You can check it in any decent text editor (Notepad++, Kate, Gedit, etc.)

          (Z(:^

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sasireka
            wrote on last edited by
            #5

            yes i checked. it is in UTF-8.

            [quote author="sierdzio" date="1411548814"]You can check it in any decent text editor (Notepad++, Kate, Gedit, etc.)[/quote]

            .................................
            Thanks & Regards

            Sasi

            .................................
            Go Green

            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