Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
ishar
Posts: 10
Registered: ‎06-23-2012
My Device: Blackberry 10 Dev Alpha

Non-english characters

Hi all,

I want to use non-standard (i.e. non-Latin) characters in a Cascades app. When I simply type them in IDE (try "zażółć gęślą jaźń"), all I get on the BB10 device or simulator is squares. Could you help me with that?

Please use plain text.
BlackBerry Development Advisor (Retired)
smacmartin
Posts: 499
Registered: ‎05-07-2012
My Device: developer

Re: Non-english characters

You need to install and use a font that supports the characters you need.

 

Stuart

 

Please use plain text.
Contributor
ishar
Posts: 10
Registered: ‎06-23-2012
My Device: Blackberry 10 Dev Alpha

Re: Non-english characters

Thanks Stuart, I though about it too, but fonts I am entering are ignored. I have tried following qml:

    Label {
        text: "Zażółć gęślą jaźń"
        textStyle {
            fontFamily: "Times New Roman" (or Arial)
            size: 45
        }
    }

 I don't know if Times or Arial are on the device/sim, because http://qt-project.org/doc/qt-4.8/qfontdatabase.html#families does't work either. (see http://supportforums.blackberry.com/t5/Native-Development/Import-custom-font/m-p/1784201)

Please use plain text.
BlackBerry Development Advisor (Retired)
smacmartin
Posts: 499
Registered: ‎05-07-2012
My Device: developer

Re: Non-english characters

To see what fonts are installed, in Momentics select the perspective "QNX System Information", view Target File System Navigator.  Browse to <IP>/system/user/fonts/font_repository.

(I expect but haven't confirmed that those are the installed fonts)

 

Stuart

Please use plain text.
BlackBerry Development Advisor (Retired)
smacmartin
Posts: 499
Registered: ‎05-07-2012
My Device: developer

Re: Non-english characters

Please use plain text.
Trusted Contributor
marcelnijman
Posts: 118
Registered: ‎06-19-2012
My Device: PlayBook + Red Z10 + BB10 Dev Alpha C

Re: Non-english characters

Actually /System/usr/fonts/font_repository

Please use plain text.