onbon.bx06.utils
Class FontUtils

java.lang.Object
  extended by onbon.bx06.utils.FontUtils

public class FontUtils
extends Object


Constructor Summary
FontUtils()
           
 
Method Summary
static Font create(String fontName, int fontStyle, int screenHeight)
          尋找最適配字型。
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontUtils

public FontUtils()
Method Detail

create

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

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


Copyright © 2020 onbon. All rights reserved.