[SOLVED] i18n - chinese fonts



  • Hi guys!
    I am working on app that is going to be translated into chinese. I'v been doing some tests and I have found out that chinese font seems to have diferen height or something, it seems like there is a blank space under font, check the picture:
    "Image":https://www.dropbox.com/s/ba18ee647i9jbwm/chinese.png
    In qml i have just Text element inside Rectangle, my Text have following code:
    @
    Text {
    id: textField
    text: container.text
    color: header ? palette.activeFont : palette.font
    height: container.height
    width: container.width
    font.pixelSize: 18
    font.bold: showBorder
    verticalAlignment: Text.AlignVCenter
    horizontalAlignment: Text.AlignHCenter
    visible: !container.hide
    wrapMode: Text.Wrap
    elide: Text.ElideRight
    }
    @
    Is there any workaround? Or you know some fonts that are working right? Thanks for any advice!



  • Hi,
    Chinese is my local language.Can you show the fully code so I can compile on my computer.
    BR,
    Leaf



  • Thanks for offer, but in the end i have found out that it was my fault:-)
    I was reading chinese text from DB and I didn't noticed that I have put it in DB with new line char in the end. So after removing new line - problem solved.
    Sorry.


Log in to reply
 

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