U+2603 is not currently in the android fonts.

FYI -  The default font is DroidSans.ttf (when you don't specify a  
typeface object). All of the UI fonts (there are 7 currently) in turn  
reference DroidSansFallback.ttf for characters that they don't contain.

mike

On Nov 26, 2008, at 8:59 PM, Rui Castro wrote:

Hi,

I already sent this message to android-framework group, but since I  
had no answer there I want to post the problem described bellow here.
Please read the forward message.

Thanks,
Rui

---------- Forwarded message ----------
From: Rui Castro <[EMAIL PROTECTED]>
Date: Wed, Nov 26, 2008 at 11:52 PM
Subject: Re: Supported unicode characters
To: [EMAIL PROTECTED]


Hi,

Replying to myself, again, I noticed that the font used in the phone  
(the emulator) is not the ones in <frameworks/base/data/fonts>.
The character ☎ (U+2603) appear differently in the character map and  
in the actual application. See the attached pictures.

So, the question is, where is the default font used in the the phone  
applications?

Thanks,
Rui


On Wed, Nov 26, 2008 at 11:40 PM, Rui Castro <[EMAIL PROTECTED]>  
wrote:
Hi,

I'm sorry to insist on this, but I can't find an explanation for this  
problem. The Droid Sans font, from Android framework, contains the  
unicode character ⏏ (U+23CF), as the attached screenshot proves, but  
when I use it as the text of a button (in the layout XML file with  
@android:text attribute) what I see is a rectangle as you can see in  
the attached image.

Any ideias about this? What should I do?


On Wed, Nov 26, 2008 at 3:14 AM, Rui Castro <[EMAIL PROTECTED]>  
wrote:
Hi,

Thanks for the answer.
The characters I want to use are there, but when I use them a  
rectangle appears where the character should be :(

I'm using the strings.xml to put the buttons text, like this:
<string name="arrow">&#x21A8;</string>

  and in the layout XML file I reference this text like this
<Button android:text="@string/arrow" ... />

I'm I doing something wrong? I suppose I'm not, because this method  
work very well with the other characters.

Thanks,
Rui


On Wed, Nov 26, 2008 at 1:24 AM, Dan Bornstein <[EMAIL PROTECTED]>  
wrote:

On Tue, Nov 25, 2008 at 6:19 PM, Rui Castro <[EMAIL PROTECTED]>  
wrote:
 > Is there a list of supported characters in Android?

You can find the fonts that are part of Android in
<frameworks/base/data/fonts> in the open source repository.

-dan








<Screenshot-Character Map-1.png><Screenshot-Android Emulator  
(5554)_call.png>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to