1. niazdokrat's Avatar
    I've been trying to print out the degree sign on the screen. Im using myriad Pro font from the device and using the bbutil_render_text function to display it. I've tried using \176 (ansi) and \u00B0 (unicode) codes but they print ~ and some garbage respectively. any ideas?
    06-26-12 09:24 PM
  2. Innovatology's Avatar
    The NDK forum over at blackberry.com would be a better place to ask:
    Native Development - BlackBerry Support Community Forums
    06-27-12 12:42 AM
  3. mappau-dev's Avatar
    this is a common behaviour based on the fact, that bbutil only loads standard ascii characters (first 128 chars).
    Therefore you need to write your own render text, update the bbutil or use a char with a ascii code < 128
    niazdokrat likes this.
    06-27-12 01:06 AM
  4. Cozz4ever's Avatar
    I had the same problem a while back and surprisingly copying and pasting into the code worked...

    #include <iostream>
    #include <string>
    using namespace std;

    int main () {
    string sign="";
    cout <<sign << endl;
    return 0;
    06-27-12 07:41 AM
  5. Cozz4ever's Avatar
    I know what my code isn't standard practice so I looked up on some reverence sample code.

    Try these...

    cout << "\xf8" << endl ;


    cout << "\370" << endl;

    For instance,
    cout << "88\370" << endl;
    Will show... 88

    Hopefully it works for you.
    06-27-12 07:57 AM
  6. niazdokrat's Avatar
    thanks for your efforts but none of these worked. got tired and just created a custom font.
    06-27-12 11:17 PM