Skip to content

Commit 0d5cad7

Browse files
Jim MillerAndroid (Google) Code Review
authored andcommitted
Merge "Updating AndroidClock font to match the Roboto thin style for time display." into jb-mr1-dev
2 parents 327b321 + 24de605 commit 0d5cad7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

data/fonts/AndroidClock.ttf

292 Bytes
Binary file not shown.

policy/src/com/android/internal/policy/impl/keyguard/ClockView.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
* Displays the time
4141
*/
4242
public class ClockView extends RelativeLayout {
43+
private static final String ANDROID_CLOCK_FONT_FILE = "/system/fonts/AndroidClock.ttf";
4344
private final static String M12 = "h:mm";
4445
private final static String M24 = "kk:mm";
4546

@@ -153,7 +154,7 @@ public ClockView(Context context, AttributeSet attrs) {
153154
protected void onFinishInflate() {
154155
super.onFinishInflate();
155156
mTimeView = (TextView) findViewById(R.id.clock_text);
156-
mTimeView.setTypeface(Typeface.create("sans-serif-thin", Typeface.NORMAL));
157+
mTimeView.setTypeface(Typeface.createFromFile(ANDROID_CLOCK_FONT_FILE));
157158
mAmPm = new AmPm(this, null);
158159
mCalendar = Calendar.getInstance();
159160
setDateFormat();

0 commit comments

Comments
 (0)