How to set local fonts



  • 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();
    @


  • Moderators

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



  • 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]


  • Moderators

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



  • 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]


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.