mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-26 02:50:58 +00:00
use custom font also for hint labels, fixes #1323
This commit is contained in:
parent
105a6a7791
commit
5afb1e3a0c
1 changed files with 1 additions and 1 deletions
|
@ -453,7 +453,7 @@ public class KeyboardView extends View {
|
|||
paint.setTextSize(key.selectHintTextSize(params) * mFontSizeMultiplier); // maybe take sqrt to not have such extreme changes?
|
||||
paint.setColor(key.selectHintTextColor(params));
|
||||
// TODO: Should add a way to specify type face for hint letters
|
||||
paint.setTypeface(Typeface.DEFAULT_BOLD);
|
||||
paint.setTypeface(mTypeface == null ? Typeface.DEFAULT_BOLD : mTypeface);
|
||||
blendAlpha(paint, params.mAnimAlpha);
|
||||
final float labelCharHeight = TypefaceUtils.getReferenceCharHeight(paint);
|
||||
final float labelCharWidth = TypefaceUtils.getReferenceCharWidth(paint);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue