Re: [android-developers] Re: Fonts on Android, how are they manage by the OS?

2011-06-14 Thread Nikolay Elenkov
On Wed, Jun 15, 2011 at 5:08 AM, Indicator Veritatis  wrote:
> I can see doing that for the Kanji, which look similar enough, but
> what about the katakana and hiragana in Japanese text? These
> characters do not exist in Chinese, and the Japanese would be really
> unreadable if they were mapped to the kanji they were originally
> derived from.
>

It's not that bad :) I haven't looked into this in detail, but it seems
that there is a 'fallback' font that has  kana glyphs, so it is at
least readable.

-- 
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: Fonts on Android, how are they manage by the OS?

2011-06-14 Thread Indicator Veritatis
I can see doing that for the Kanji, which look similar enough, but
what about the katakana and hiragana in Japanese text? These
characters do not exist in Chinese, and the Japanese would be really
unreadable if they were mapped to the kanji they were originally
derived from.

On Jun 9, 10:30 pm, Nikolay Elenkov  wrote:
> On Fri, Jun 10, 2011 at 1:32 PM, Dianne Hackborn  wrote:
> > Currently at build time one of them must be selected.
>
> Any plans to change this to something more flexible?
>
> BTW, it seems Chinese is the default, because all non-Japanese phones (don't
> know about tables), display Japanese text using Chinese glyphs.

-- 
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


Re: [android-developers] Re: Fonts on Android, how are they manage by the OS?

2011-06-09 Thread Nikolay Elenkov
On Fri, Jun 10, 2011 at 1:32 PM, Dianne Hackborn  wrote:
> Currently at build time one of them must be selected.
>

Any plans to change this to something more flexible?

BTW, it seems Chinese is the default, because all non-Japanese phones (don't
know about tables), display Japanese text using Chinese glyphs.

-- 
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


Re: [android-developers] Re: Fonts on Android, how are they manage by the OS?

2011-06-09 Thread Dianne Hackborn
Currently at build time one of them must be selected.

On Thu, Jun 9, 2011 at 9:24 PM, Nikolay Elenkov
wrote:

> On Fri, Jun 10, 2011 at 1:08 PM, Dianne Hackborn 
> wrote:
> > They do ship with font support for most languages.  Note that this is
> > complicated though because for example Chinese vs. Japanese fonts have
> > different glyphs for the same Unicode code point.
> >
>
> How is this handled in Android? Does it use Japanese glyphs if the locale
> or
> the browser codepage is Japanese? Or is there some global configuration,
> like
> in freetype?
>
> --
> 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
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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

Re: [android-developers] Re: Fonts on Android, how are they manage by the OS?

2011-06-09 Thread Nikolay Elenkov
On Fri, Jun 10, 2011 at 1:08 PM, Dianne Hackborn  wrote:
> They do ship with font support for most languages.  Note that this is
> complicated though because for example Chinese vs. Japanese fonts have
> different glyphs for the same Unicode code point.
>

How is this handled in Android? Does it use Japanese glyphs if the locale or
the browser codepage is Japanese? Or is there some global configuration, like
in freetype?

-- 
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


Re: [android-developers] Re: Fonts on Android, how are they manage by the OS?

2011-06-09 Thread Dianne Hackborn
They do ship with font support for most languages.  Note that this is
complicated though because for example Chinese vs. Japanese fonts have
different glyphs for the same Unicode code point.

On Thu, Jun 9, 2011 at 8:33 PM, Mark Carter  wrote:

> Are we talking about two different things here? Font support and locale (?)
> support?
>
> I can understand why a US-only device would not need to ship with support
> for locales like Japanese and Thai, but there is a stronger argument to
> include Japanese and Thai fonts (space permitting) because they are useful
> to translator apps and the browser etc.
>
> Is there any way to programmatically check whether a unicode char is
> displayable? A negative check would allow us to then fall back on a ttf file
> in the assets (which I think is a better way than just forcing the assets
> file in the first place).
>
> --
> 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
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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

Re: [android-developers] Re: Fonts on Android, how are they manage by the OS?

2011-06-09 Thread Mark Carter
Are we talking about two different things here? Font support and locale (?) 
support?

I can understand why a US-only device would not need to ship with support 
for locales like Japanese and Thai, but there is a stronger argument to 
include Japanese and Thai fonts (space permitting) because they are useful 
to translator apps and the browser etc.

Is there any way to programmatically check whether a unicode char is 
displayable? A negative check would allow us to then fall back on a ttf file 
in the assets (which I think is a better way than just forcing the assets 
file in the first place).

-- 
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

Re: [android-developers] Re: Fonts on Android, how are they manage by the OS?

2011-06-09 Thread Dianne Hackborn
As I tried to indicate, I only know about the the initial device which was
in fact US only.  Further software updates to that device are also US only.

I don't know about devices being sold in other countries.

On Thu, Jun 9, 2011 at 5:19 PM, Zsolt Vasvari  wrote:

> Xoom is absolutely not a US only device.   You can buy it in Singapore
> where I live from official channels.   Also, 3.1 still only got the 3
> languages which makes your 'reference " Honeycomb device pretty
> useless for localization testing -
>
> On Jun 10, 2:28 am, Dianne Hackborn  wrote:
> > The initial Xoom was a US-only device, so the other languages were not
> > needed.  Since that was the first release of Android 3.0, generating all
> of
> > the translations would have delayed the product for stuff it didn't need.
> >
> > It is just going to be a fact of life that different devices will ship
> with
> > different languages depending on the places it is being shipped and other
> > considerations.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Wed, Jun 8, 2011 at 5:57 PM, Zsolt Vasvari 
> wrote:
> > > But even my Xoom only includes 3 languages so it's almost useless for
> > > testing translations -
> >
> > > On Jun 9, 12:04 am, Dianne Hackborn  wrote:
> > > > Nexus One has a smaller partition for the system image, so can't fit
> > > every
> > > > possible thing.  New translations were added to the platform after
> the
> > > > initial Nexus One release, but those new translations are not
> included on
> > > N1
> > > > due to the limited space.
> >
> > > > On Wed, Jun 8, 2011 at 7:41 AM, Paolo  wrote:
> > > > > yes those fonts are for the last platform, I guess Gingerbread that
> > > > > provides an extended language support.
> > > > > However I noticed something strange... On my Nexus S there are a
> lot
> > > > > of languages supported selectable, on the other hand on my Nexus
> One
> > > > > (always 2.3.4) there are only a subset of those.
> >
> > > > > I expected they were the same... I am a bit confused! :|
> >
> > > > > On 8 Giu, 12:23, James Ots  wrote:
> > > > > > Here are the fonts in the android source.
> >
> > >http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;.
> ..
> >
> > > > > > These are listed in the makefile
> >
> > > > > > DroidSans.ttf
> > > > > > DroidSans-Bold.ttf
> > > > > > DroidSansArabic.ttf
> > > > > > DroidSansHebrew.ttf
> > > > > > DroidSansThai.ttf
> > > > > > DroidSerif-Regular.ttf
> > > > > > DroidSerif-Bold.ttf
> > > > > > DroidSerif-Italic.ttf
> > > > > > DroidSerif-BoldItalic.ttf
> > > > > > DroidSansMono.ttf
> > > > > > Clockopia.ttf
> >
> > > > > > Although I can't see any guarantee that these will be there, I
> think
> > > you
> > > > > can probably assume that any Compatible Android device will have
> these
> > > fonts
> > > > > available.
> >
> > > > > > James
> >
> > > > > --
> > > > > 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
> >
> > > > --
> > > > Dianne Hackborn
> > > > Android framework engineer
> > > > hack...@android.com
> >
> > > > Note: please don't send private questions to me, as I don't have time
> to
> > > > provide private support, and so won't reply to such e-mails.  All
> such
> > > > questions should be posted on public forums, where I and others can
> see
> > > and
> > > > answer them.
> >
> > > --
> > > 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
> >
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
> >
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see
> and
> > answer them.
>
> --
> 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
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't r

[android-developers] Re: Fonts on Android, how are they manage by the OS?

2011-06-09 Thread Zsolt Vasvari
Xoom is absolutely not a US only device.   You can buy it in Singapore
where I live from official channels.   Also, 3.1 still only got the 3
languages which makes your 'reference " Honeycomb device pretty
useless for localization testing -

On Jun 10, 2:28 am, Dianne Hackborn  wrote:
> The initial Xoom was a US-only device, so the other languages were not
> needed.  Since that was the first release of Android 3.0, generating all of
> the translations would have delayed the product for stuff it didn't need.
>
> It is just going to be a fact of life that different devices will ship with
> different languages depending on the places it is being shipped and other
> considerations.
>
>
>
>
>
>
>
>
>
> On Wed, Jun 8, 2011 at 5:57 PM, Zsolt Vasvari  wrote:
> > But even my Xoom only includes 3 languages so it's almost useless for
> > testing translations -
>
> > On Jun 9, 12:04 am, Dianne Hackborn  wrote:
> > > Nexus One has a smaller partition for the system image, so can't fit
> > every
> > > possible thing.  New translations were added to the platform after the
> > > initial Nexus One release, but those new translations are not included on
> > N1
> > > due to the limited space.
>
> > > On Wed, Jun 8, 2011 at 7:41 AM, Paolo  wrote:
> > > > yes those fonts are for the last platform, I guess Gingerbread that
> > > > provides an extended language support.
> > > > However I noticed something strange... On my Nexus S there are a lot
> > > > of languages supported selectable, on the other hand on my Nexus One
> > > > (always 2.3.4) there are only a subset of those.
>
> > > > I expected they were the same... I am a bit confused! :|
>
> > > > On 8 Giu, 12:23, James Ots  wrote:
> > > > > Here are the fonts in the android source.
>
> >http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;...
>
> > > > > These are listed in the makefile
>
> > > > > DroidSans.ttf
> > > > > DroidSans-Bold.ttf
> > > > > DroidSansArabic.ttf
> > > > > DroidSansHebrew.ttf
> > > > > DroidSansThai.ttf
> > > > > DroidSerif-Regular.ttf
> > > > > DroidSerif-Bold.ttf
> > > > > DroidSerif-Italic.ttf
> > > > > DroidSerif-BoldItalic.ttf
> > > > > DroidSansMono.ttf
> > > > > Clockopia.ttf
>
> > > > > Although I can't see any guarantee that these will be there, I think
> > you
> > > > can probably assume that any Compatible Android device will have these
> > fonts
> > > > available.
>
> > > > > James
>
> > > > --
> > > > 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
>
> > > --
> > > Dianne Hackborn
> > > Android framework engineer
> > > hack...@android.com
>
> > > Note: please don't send private questions to me, as I don't have time to
> > > provide private support, and so won't reply to such e-mails.  All such
> > > questions should be posted on public forums, where I and others can see
> > and
> > > answer them.
>
> > --
> > 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
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

-- 
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


Re: [android-developers] Re: Fonts on Android, how are they manage by the OS?

2011-06-09 Thread Dianne Hackborn
The initial Xoom was a US-only device, so the other languages were not
needed.  Since that was the first release of Android 3.0, generating all of
the translations would have delayed the product for stuff it didn't need.

It is just going to be a fact of life that different devices will ship with
different languages depending on the places it is being shipped and other
considerations.

On Wed, Jun 8, 2011 at 5:57 PM, Zsolt Vasvari  wrote:

> But even my Xoom only includes 3 languages so it's almost useless for
> testing translations -
>
> On Jun 9, 12:04 am, Dianne Hackborn  wrote:
> > Nexus One has a smaller partition for the system image, so can't fit
> every
> > possible thing.  New translations were added to the platform after the
> > initial Nexus One release, but those new translations are not included on
> N1
> > due to the limited space.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Wed, Jun 8, 2011 at 7:41 AM, Paolo  wrote:
> > > yes those fonts are for the last platform, I guess Gingerbread that
> > > provides an extended language support.
> > > However I noticed something strange... On my Nexus S there are a lot
> > > of languages supported selectable, on the other hand on my Nexus One
> > > (always 2.3.4) there are only a subset of those.
> >
> > > I expected they were the same... I am a bit confused! :|
> >
> > > On 8 Giu, 12:23, James Ots  wrote:
> > > > Here are the fonts in the android source.
> >
> > > >
> http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;...
> >
> > > > These are listed in the makefile
> >
> > > > DroidSans.ttf
> > > > DroidSans-Bold.ttf
> > > > DroidSansArabic.ttf
> > > > DroidSansHebrew.ttf
> > > > DroidSansThai.ttf
> > > > DroidSerif-Regular.ttf
> > > > DroidSerif-Bold.ttf
> > > > DroidSerif-Italic.ttf
> > > > DroidSerif-BoldItalic.ttf
> > > > DroidSansMono.ttf
> > > > Clockopia.ttf
> >
> > > > Although I can't see any guarantee that these will be there, I think
> you
> > > can probably assume that any Compatible Android device will have these
> fonts
> > > available.
> >
> > > > James
> >
> > > --
> > > 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
> >
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
> >
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see
> and
> > answer them.
>
> --
> 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
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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: Fonts on Android, how are they manage by the OS?

2011-06-09 Thread John
The problem with languages (locales) seems to be more related to the
wireless
company than the phone makers.  I recently taught a course on
developing
Android apps, and there were several different phones used by myself
and my
students.  Those who had AT&T phones, for example, seemed to have a
lot of
languages preinstalled, but those with Verizon had only two or three
languages.
The situation is likely related to their respective technologies (GSM
versus CDMA;
see http://www.cellutips.com/gsm-vs-cdma-which-one-is-the-best-for-you/)
and their target markets.  My Motorola Droid X (Verizon) for example,
has only
English and Spanish, but during the course I also had access to a
Samsung
Captivate (AT&T), and it had a lot of languages preinstalled. In
general one
should always develop using string resources and other techniques so
that the
application could easily be modified to support other locales.

On Jun 8, 9:21 pm, Chris  wrote:
> That's awful.  My HTC Magic which came out in 2009 supports ~40
> languages/varieties.

-- 
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: Fonts on Android, how are they manage by the OS?

2011-06-08 Thread Chris
That's awful.  My HTC Magic which came out in 2009 supports ~40 
languages/varieties.

-- 
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: Fonts on Android, how are they manage by the OS?

2011-06-08 Thread Zsolt Vasvari
But even my Xoom only includes 3 languages so it's almost useless for
testing translations -

On Jun 9, 12:04 am, Dianne Hackborn  wrote:
> Nexus One has a smaller partition for the system image, so can't fit every
> possible thing.  New translations were added to the platform after the
> initial Nexus One release, but those new translations are not included on N1
> due to the limited space.
>
>
>
>
>
>
>
>
>
> On Wed, Jun 8, 2011 at 7:41 AM, Paolo  wrote:
> > yes those fonts are for the last platform, I guess Gingerbread that
> > provides an extended language support.
> > However I noticed something strange... On my Nexus S there are a lot
> > of languages supported selectable, on the other hand on my Nexus One
> > (always 2.3.4) there are only a subset of those.
>
> > I expected they were the same... I am a bit confused! :|
>
> > On 8 Giu, 12:23, James Ots  wrote:
> > > Here are the fonts in the android source.
>
> > >http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;...
>
> > > These are listed in the makefile
>
> > > DroidSans.ttf
> > > DroidSans-Bold.ttf
> > > DroidSansArabic.ttf
> > > DroidSansHebrew.ttf
> > > DroidSansThai.ttf
> > > DroidSerif-Regular.ttf
> > > DroidSerif-Bold.ttf
> > > DroidSerif-Italic.ttf
> > > DroidSerif-BoldItalic.ttf
> > > DroidSansMono.ttf
> > > Clockopia.ttf
>
> > > Although I can't see any guarantee that these will be there, I think you
> > can probably assume that any Compatible Android device will have these fonts
> > available.
>
> > > James
>
> > --
> > 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
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

-- 
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


Re: [android-developers] Re: Fonts on Android, how are they manage by the OS?

2011-06-08 Thread Dianne Hackborn
Nexus One has a smaller partition for the system image, so can't fit every
possible thing.  New translations were added to the platform after the
initial Nexus One release, but those new translations are not included on N1
due to the limited space.

On Wed, Jun 8, 2011 at 7:41 AM, Paolo  wrote:

> yes those fonts are for the last platform, I guess Gingerbread that
> provides an extended language support.
> However I noticed something strange... On my Nexus S there are a lot
> of languages supported selectable, on the other hand on my Nexus One
> (always 2.3.4) there are only a subset of those.
>
> I expected they were the same... I am a bit confused! :|
>
>
>
> On 8 Giu, 12:23, James Ots  wrote:
> > Here are the fonts in the android source.
> >
> > http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;...
> >
> > These are listed in the makefile
> >
> > DroidSans.ttf
> > DroidSans-Bold.ttf
> > DroidSansArabic.ttf
> > DroidSansHebrew.ttf
> > DroidSansThai.ttf
> > DroidSerif-Regular.ttf
> > DroidSerif-Bold.ttf
> > DroidSerif-Italic.ttf
> > DroidSerif-BoldItalic.ttf
> > DroidSansMono.ttf
> > Clockopia.ttf
> >
> > Although I can't see any guarantee that these will be there, I think you
> can probably assume that any Compatible Android device will have these fonts
> available.
> >
> > James
>
> --
> 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
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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: Fonts on Android, how are they manage by the OS?

2011-06-08 Thread Paolo
yes those fonts are for the last platform, I guess Gingerbread that
provides an extended language support.
However I noticed something strange... On my Nexus S there are a lot
of languages supported selectable, on the other hand on my Nexus One
(always 2.3.4) there are only a subset of those.

I expected they were the same... I am a bit confused! :|



On 8 Giu, 12:23, James Ots  wrote:
> Here are the fonts in the android source.
>
> http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;...
>
> These are listed in the makefile
>
> DroidSans.ttf          
> DroidSans-Bold.ttf      
> DroidSansArabic.ttf    
> DroidSansHebrew.ttf    
> DroidSansThai.ttf      
> DroidSerif-Regular.ttf  
> DroidSerif-Bold.ttf    
> DroidSerif-Italic.ttf  
> DroidSerif-BoldItalic.ttf  
> DroidSansMono.ttf        
> Clockopia.ttf
>
> Although I can't see any guarantee that these will be there, I think you can 
> probably assume that any Compatible Android device will have these fonts 
> available.
>
> James

-- 
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: Fonts on Android, how are they manage by the OS?

2011-06-08 Thread James Ots
Here are the fonts in the android source.

http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=data/fonts;h=b63895f0105adc2a62f648293b14aa89cc64e3f2;hb=HEAD

These are listed in the makefile

DroidSans.ttf   
DroidSans-Bold.ttf  
DroidSansArabic.ttf 
DroidSansHebrew.ttf 
DroidSansThai.ttf   
DroidSerif-Regular.ttf  
DroidSerif-Bold.ttf 
DroidSerif-Italic.ttf   
DroidSerif-BoldItalic.ttf   
DroidSansMono.ttf
Clockopia.ttf


Although I can't see any guarantee that these will be there, I think you can 
probably assume that any Compatible Android device will have these fonts 
available.

James

-- 
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: Fonts on Android, how are they manage by the OS?

2011-06-08 Thread Paolo


On 8 Giu, 10:28, Shine  wrote:
> 2)I guess there is no guarantee. To be certain of the font
> availability, considering .ttf file size, it should be better for you
> to include desired font inside /assets directory, and then load it
> with something like this:

ok, but there is no guarentee also for the system fonts? It seems a
bit strange... because it would be the default typeface fro Android. I
expect to find the DroidSans typeface everywhere!
I need a confirm!

> 3) it will draw another 'special char', like ? or #. You'll have to
> test it extensively.

Also in this case I expect a different behavior... something like: a
typeface like Sans doesn't provide a specified glyph I expect the
system automatically checks for another typeface which is able to
render it. How does Android work?

And how can I test it?

>
> On 8 Giu, 10:07, Paolo  wrote:
>
>
>
> > Hi there!
> > I need some clarifications how Android uses fonts/typefaces.
>
> > Questions:
> > 1) my app must supported a huge lists of language so I need a font,
> > which is able to match the max possible number of characters UNICODE.
> > Is there in Android a font like that?
>
> > 2) I have noticed that on my N1 are present many fonts on the system
> > folder "fonts" Droidxxx.ttf. How can I be sure those fonts always will
> > be on all Android devices like on Samsung, HTC or LG...? Is there any
> > guarantee?
>
> > 3) Suppose I choose a DroidXXX.ttf font as default of my app. If I
> > need a particular glyph and it isn't in my chosen fonts, how does
> > Android manage this situation?
>
> > Please answer me ASAP.
>
> > Thanks in advance!
>
> > Paolo

-- 
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: Fonts on Android, how are they manage by the OS?

2011-06-08 Thread Shine
2)I guess there is no guarantee. To be certain of the font
availability, considering .ttf file size, it should be better for you
to include desired font inside /assets directory, and then load it
with something like this:

public void setFont(TextView in){
Typeface font = Typeface.createFromAsset(contx.getAssets(),
"YourFontName.ttf");
in.setTypeface(font);
}

3) it will draw another 'special char', like ? or #. You'll have to
test it extensively.

On 8 Giu, 10:07, Paolo  wrote:
> Hi there!
> I need some clarifications how Android uses fonts/typefaces.
>
> Questions:
> 1) my app must supported a huge lists of language so I need a font,
> which is able to match the max possible number of characters UNICODE.
> Is there in Android a font like that?
>
> 2) I have noticed that on my N1 are present many fonts on the system
> folder "fonts" Droidxxx.ttf. How can I be sure those fonts always will
> be on all Android devices like on Samsung, HTC or LG...? Is there any
> guarantee?
>
> 3) Suppose I choose a DroidXXX.ttf font as default of my app. If I
> need a particular glyph and it isn't in my chosen fonts, how does
> Android manage this situation?
>
> Please answer me ASAP.
>
> Thanks in advance!
>
> Paolo

-- 
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