First of all set your font to the TextView
TextView textView = (TextView) findViewById(R.id.textview);
Typeface myTypeface = Typeface.createFromAsset(getContext().getAssets(), "font/myFont.ttf");
textView.setTypeface(myTypeface);
Now, You can achieve different size of S
and T
using SpannableString
String s = "STUDENT LOGIN";
SpannableString ss = new SpannableString(s);
ss.setSpan(new RelativeSizeSpan(2f), 0, 1, 0); // Set Size
ss.setSpan(new RelativeSizeSpan(2f), 8, 9, 0); // Set Size
textView.setText(ss);
Here replace 2f
according to size you want.
0
is starting index of S
and 1
is ending index.
8
is starting index of L
and 9
is ending index.