It's just Roboto that I got from Google Fonts, but packaged to only include "%0123456789AP:", so I'm not using a filter on it. It's only used for time and battery.
I'm having the hardest time getting it to center in the screen! It's like Eclipse thinks the center of the text is several pixels above them. y="-5" on the smaller font, to be exact.
<layout id="elements">
<label id="time" x="left" y="-5" justification="Gfx.TEXT_JUSTIFY_LEFT" />
<label id="batt" x="right" y="-5" justification="Gfx.TEXT_JUSTIFY_RIGHT" />
<label id="superClock_text" x="center" y="center" justification="Gfx.TEXT_JUSTIFY_CENTER" />
</layout>
if(_superClock_state && _isAwake){ var _superClock_text = findDrawableById("superClock_text");
_superClock_text.setText(timeText + ampm);
_superClock_text.setFont(superFont);
_superClock_text.setLocation(dc.getWidth()/2, (dc.getHeight()/2)-(_superClock_text.height/2));
_superClock_text.setColor(_colorTable_bkgrd[_themeIndex]);
_superClock_text.setBackgroundColor(Gfx.COLOR_TRANSPARENT);
var x = 0;
var y = _superClock_text.locY;
var w = dc.getWidth();
var h = _superClock_text.height;
dc.setColor(_colorTable_text[_themeIndex],Gfx.COLOR_RED);
dc.fillRectangle(x, y, w, h);
_superClock_text.draw(dc);
}
I tried using
justification="Gfx.TEXT_JUSTIFY_VCENTER"
and this did put the text in the center of Y, but cause it to go off the left side of the screen, like it was justified right.The fonts that come on the device don't do this, they center/center just fine.
In BMFont I set the export options to all 0 padding, and all 0 spacing.
What am I missing?