Not all fonts seem to be compatible. Try a font that's known to work,
such as the HandmadeTypewriter font I used in this sample:

https://github.com/commonsguy/cw-android/tree/master/Fonts/FontSampler

If that works, but your font does not, then the issue is with the
font, and I don't know what, if anything, can be done to fix it.

On Fri, Aug 12, 2011 at 2:02 PM, erik ryerson <[email protected]> wrote:
> I'm having some trouble adding a custom font to skin.xml
>
> Here is my code
>
> I have this in the skins xml files
>
> Code:
>
> <TextView android:id="@id/sender_phone_num"
>                      android:textColor="#332f33"/>
>
> So I added this to my main package
>
> Code:
>
> TextView tv=(TextView)findViewById(R.id.sender_phone_num");
>        Typeface face=Typeface.createFromAsset(getAssets(),
>        "fonts/nokiafc22.ttf");
>        tv.setTypeface(face);
>
> and placed the font in the assets/fonts folder
>
> I must be missing something, because the font isn't changing in app
>
> Any suggestions?
>
> --
> 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
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

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