nanogui: Thread: displaying degree symbol


[<<] [<] Page 1 of 1 [>] [>>]
Subject: displaying degree symbol
From: Junior ####@####.####
Date: 1 Jun 2006 16:08:10 +0100
Message-Id: <361428B318A.0000038Bejr@inbox.com>

Hi All,
I've got a problem with displaying the degree symbol 0xB0 when part of a text. In this case it's at the end of the text.
If I have a string 0x34 0x31 0xB0, which is 34 degrees, the string will not be displayed. If I take out the 0xBo from the string, the others will be displayed.
I'm using:
GrText(my_gc, font_gc,x,y,string, 3,GR_TFUTF8|GR_TFBOTTOM);

Does anyone have any suggestions?

Thanks,
--Jr.
Subject: RE: [nanogui] displaying degree symbol
From: Junior ####@####.####
Date: 1 Jun 2006 16:21:55 +0100
Message-Id: <36332424028.000003B3ejr@inbox.com>

I figured out I need to use ASCII encording for this, sorry.
But is there a way to use Unicode for it?

thanks,
--Jr.

> -----Original Message-----
> From: ####@####.####
> Sent: Thu, 1 Jun 2006 07:08:03 -0800
> To: ####@####.####
> Subject: [nanogui] displaying degree symbol
> 
> Hi All,
> I've got a problem with displaying the degree symbol 0xB0 when part of a
> text. In this case it's at the end of the text.
> If I have a string 0x34 0x31 0xB0, which is 34 degrees, the string will
> not be displayed. If I take out the 0xBo from the string, the others will
> be displayed.
> I'm using:
> GrText(my_gc, font_gc,x,y,string, 3,GR_TFUTF8|GR_TFBOTTOM);
> 
> Does anyone have any suggestions?
> 
> Thanks,
> --Jr.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####

____________________________________________________________
100% Spam Free Email - Get FREE 2GB Email with Challenge/Response feature!
Get your free email account at http://www.inbox.com/spam !
Subject: Re: [nanogui] displaying degree symbol
From: "Greg Haerr" ####@####.####
Date: 2 Jun 2006 08:26:44 +0100
Message-Id: <1fe301c685da$1cf6f830$6401a8c0@winXP>

> I figured out I need to use ASCII encording for this, sorry.
But is there a way to use Unicode for it?


Sure - specify GR_UC16, use a unicode font, and specify
that character's unicode value in 16 bits.

Regards,

Greg


> GrText(my_gc, font_gc,x,y,string, 3,GR_TFUTF8|GR_TFBOTTOM);

[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.