Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,805,022 Members 53,336 Now Online
XDA Developers Android and Mobile Development Forum

Custom font in 'Dimmed' mode not rendering

Tip us?
 
Bicklp
Old
#1  
Junior Member - OP
Thanks Meter 1
Posts: 26
Join Date: Aug 2010
Default Custom font in 'Dimmed' mode not rendering

Hey

I've created a simple watch face with and am using a custom font.
On the main screen 'not dimmed' the font works fine.
When the screen dims, the font works for about a minute or so e.g.
If its 09.04 and changes to 09.05 soon after dimming its working fine, but after a minite or so, any digits that change no longer render.
E.g. if it changes from 09.05 to 09.06 then the changed digit doesn't render. In this case the 6. So the display just reads 09.0
It does redraw the screen as the clock is centred so moves the 3 digits into the centre, ot just doesn't display the last digit.

I've tried with a 2 different TTF and OTF fonts. Same on both.

If I don't set a font and use the standard it works fine all the time.

In using <textclock> to render the clock and setting the font in the oncreate using
Typeface type = Typeface.createFromAsset(getAssets(),"fonts/filename.ttf");
textclock.setTypeface(type);

Is anyone using a custom font on a watch face and getting this

Or anyone have any ideas

Thanks

Phil
 
cdsaenz
Old
#2  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Feb 2011
Hi Phil I just downloaded your "simple" watchface from mypebblefaces and it's awesome! Thanks. Is there anyway now to make the font for the Date/Month a little bigger? Shortsighted here
Tags
font, rendering, textclock, wear
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes