get rid of tmp font-flags config preference

This commit is contained in:
eehouse 2010-03-09 06:29:31 +00:00
parent dfb33c33b4
commit a727c3bb2b
3 changed files with 1 additions and 35 deletions

View file

@ -4,18 +4,6 @@
android:key="first_preferencescreen"
>
<PreferenceScreen android:title="Fonts (temporary)"
>
<CheckBoxPreference android:key="@string/key_anti_alias"
android:title="Anti-aliased"
android:defaultValue="false"
/>
<CheckBoxPreference android:key="@string/key_subpixel"
android:title="sub-pixel"
android:defaultValue="false"
/>
</PreferenceScreen>
<PreferenceCategory android:title="@string/general_prefs"
>

View file

@ -148,7 +148,7 @@ public class BoardView extends View implements DrawCtx, BoardHandler,
private void init()
{
m_drawPaint = new Paint();
m_fillPaint = new Paint( CommonPrefs.getFontFlags() );
m_fillPaint = new Paint( Paint.ANTI_ALIAS_FLAG );
m_strokePaint = new Paint();
m_strokePaint.setStyle( Paint.Style.STROKE );
m_tileStrokePaint = new Paint();

View file

@ -122,26 +122,4 @@ public class CommonPrefs {
String key = s_context.getString( R.string.key_relay_host );
return sp.getString( key, "" );
}
public static int getFontFlags()
{
String key;
int result = 0;
SharedPreferences sp =
PreferenceManager.getDefaultSharedPreferences( s_context );
key = s_context.getString( R.string.key_anti_alias );
if ( sp.getBoolean( key, false ) ) {
result = Paint.ANTI_ALIAS_FLAG | result;
}
key = s_context.getString( R.string.key_subpixel );
if ( sp.getBoolean( key, false ) ) {
result = Paint.SUBPIXEL_TEXT_FLAG | result;
}
Utils.logf( "getFontFlags=>" + result );
return result;
}
}