[android-developers] Re: Trouble in Printing Unicode Male Character
> Anyone know about this ?? Looking at the Droid TTF fonts installed on my Ubuntu machine, the symbol seems to be the way you describe for "Droid Sans Fallback", but not "Droid Sans" or the other Droid fonts. I do not know under what circumstances your text will be displayed in "Droid Sans Fallback", though, and whether that is even an actual font on the device. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Trouble in Printing Unicode Male Character
At present, I am using emulator. And I don't know how to change font from "Droid Sans Fallback" to "Droid Sans". Can you guide me how to do. Thanks On Wed, Sep 23, 2009 at 12:38 AM, Mark Murphy wrote: > > > > Anyone know about this ?? > > Looking at the Droid TTF fonts installed on my Ubuntu machine, the symbol > seems to be the way you describe for "Droid Sans Fallback", but not "Droid > Sans" or the other Droid fonts. > > I do not know under what circumstances your text will be displayed in > "Droid Sans Fallback", though, and whether that is even an actual font on > the device. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com > Android App Developer Books: http://commonsware.com/books.html > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Trouble in Printing Unicode Male Character
On Sep 23, 6:18 am, Gopal Biyani wrote: > At present, I am using emulator. And I don't know how to change font from > "Droid Sans Fallback" to "Droid Sans". Android automatically switches to the Droid Sans Fallback font when a currently selected font does not contain a character found in a string, and it sounds like that's what's happening in this case: you have selected Droid Sans, but Droid Sans does not contain U+2642. So Android substitutes U+2642 from Droid Sans Fallback, which does contain this character (and many, many others). So I think everything is working as intended. Droid Sans Fallback is indeed a real font on the device (system/fonts/ DroidSansFallback.ttf). It contains upwards of 40,000 characters, and was envisioned for exactly this purpose: to be able to show *something* when a character is encountered which does not exist in the selected font. As to the original question: The glyph shape for U+2642 in Droid Sans Fallback is a circle with an arrow pointing upward ("12 o' clock"). This shape does vary from the typical representation of the Male sign, which has the arrow coming from the upper-right quadrant...but I'm not sure that the Fallback font representation is necessarily wrong. I am not certain why it is drawn the way it is in Droid Sans Fallback, but I will check in with the font designers for more information on that. I am not sure whether the font fallback mechanism can be overridden, but even if it could I don't think you'd want to, as the alternative would be even worse: you'd simply get rectangular boxes for characters that don't exist (as you'll get when you call for characters that don't exist even in the Fallback font). Josh (from Ascender Corporation, developers of the Droid fonts) http://ascendercorp.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Trouble in Printing Unicode Male Character
Hey Josh Thanks a lot for showing your concern, will wait for your reply. Regards Gopal On Thu, Sep 24, 2009 at 11:12 AM, j.hadley wrote: > > On Sep 23, 6:18 am, Gopal Biyani wrote: > > At present, I am using emulator. And I don't know how to change font from > > "Droid Sans Fallback" to "Droid Sans". > > Android automatically switches to the Droid Sans Fallback font when a > currently selected font does not contain a character found in a > string, and it sounds like that's what's happening in this case: you > have selected Droid Sans, but Droid Sans does not contain U+2642. So > Android substitutes U+2642 from Droid Sans Fallback, which does > contain this character (and many, many others). So I think everything > is working as intended. > > Droid Sans Fallback is indeed a real font on the device (system/fonts/ > DroidSansFallback.ttf). It contains upwards of 40,000 characters, and > was envisioned for exactly this purpose: to be able to show > *something* when a character is encountered which does not exist in > the selected font. > > As to the original question: The glyph shape for U+2642 in Droid Sans > Fallback is a circle with an arrow pointing upward ("12 o' clock"). > This shape does vary from the typical representation of the Male sign, > which has the arrow coming from the upper-right quadrant...but I'm not > sure that the Fallback font representation is necessarily wrong. I am > not certain why it is drawn the way it is in Droid Sans Fallback, but > I will check in with the font designers for more information on that. > > I am not sure whether the font fallback mechanism can be overridden, > but even if it could I don't think you'd want to, as the alternative > would be even worse: you'd simply get rectangular boxes for characters > that don't exist (as you'll get when you call for characters that > don't exist even in the Fallback font). > > > Josh (from Ascender Corporation, developers of the Droid fonts) > http://ascendercorp.com > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Trouble in Printing Unicode Male Character
We have confirmed that the current shape for U+2642 in Droid Sans Fallback is a bug. This will be corrected in the font and supplied for a future release of Android. In the meantime, if you need a correct shape for that character, you could obtain (e.g. purchase/license or create) a font that has the correct form and use that as a private font (use Typeface.createFromAsset in your app). Josh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Trouble in Printing Unicode Male Character
Thanks Josh for your effort. And hoping to see correction in next release. On Mon, Sep 28, 2009 at 12:49 PM, j.hadley wrote: > > We have confirmed that the current shape for U+2642 in Droid Sans > Fallback is a bug. This will be corrected in the font and supplied for > a future release of Android. > > In the meantime, if you need a correct shape for that character, you > could obtain (e.g. purchase/license or create) a font that has the > correct form and use that as a private font (use > Typeface.createFromAsset in your app). > > > Josh > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---