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.
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?
On Wed, Nov 26, 2008 at 11:40 PM, Rui Castro <rui.cas...@gmail.com> 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 <rui.cas...@gmail.com> 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">↨</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 <danf...@android.com>wrote:
>>> On Tue, Nov 25, 2008 at 6:19 PM, Rui Castro <rui.cas...@gmail.com> >>> 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.