onbon.bx06.utils
类 FontUtils

java.lang.Object
  继承者 onbon.bx06.utils.FontUtils

public class FontUtils
extends Object


构造方法摘要
FontUtils()
           
 
方法摘要
static Font create(String fontName, int fontStyle, int screenHeight)
          尋找最適配字型。
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

FontUtils

public FontUtils()
方法详细信息

create

public static Font create(String fontName,
                          int fontStyle,
                          int screenHeight)
尋找最適配字型。

参数:
fontName - 字型名稱。
fontStyle - 字型樣式。
screenHeight - 屏幕高度。
返回:
最適配字型。最小字體大小為 5。


Copyright © 2018 onbon. All rights reserved.