Searched refs:TypefaceUtils (Results 1 – 5 of 5) sorted by relevance
39 import com.android.inputmethod.latin.utils.TypefaceUtils;400 final float labelCharHeight = TypefaceUtils.getReferenceCharHeight(paint); in onDrawKeyTopVisuals()401 final float labelCharWidth = TypefaceUtils.getReferenceCharWidth(paint); in onDrawKeyTopVisuals()417 TypefaceUtils.getStringWidth(label, paint)); in onDrawKeyTopVisuals()454 final float labelCharHeight = TypefaceUtils.getReferenceCharHeight(paint); in onDrawKeyTopVisuals()455 final float labelCharWidth = TypefaceUtils.getReferenceCharWidth(paint); in onDrawKeyTopVisuals()475 final float hintDigitWidth = TypefaceUtils.getReferenceDigitWidth(paint); in onDrawKeyTopVisuals()476 final float hintLabelWidth = TypefaceUtils.getStringWidth(hintLabel, paint); in onDrawKeyTopVisuals()525 - TypefaceUtils.getReferenceCharWidth(paint) / 2.0f; in drawKeyPopupHint()
28 import com.android.inputmethod.latin.utils.TypefaceUtils;326 (int)(TypefaceUtils.getStringWidth(label, paint) + padding)); in getMaxKeyWidth()
61 import com.android.inputmethod.latin.utils.TypefaceUtils;829 final float textWidth = TypefaceUtils.getStringWidth(text, paint); in fitsTextIntoWidth()840 return TypefaceUtils.getStringWidth(text, paint) < maxTextWidth; in fitsTextIntoWidth()
24 public final class TypefaceUtils { class28 private TypefaceUtils() { in TypefaceUtils() method in TypefaceUtils
32 import com.android.inputmethod.latin.utils.TypefaceUtils;78 mWidths[index] = (int)(TypefaceUtils.getStringWidth(word, paint) + padding); in layout()