콤포넌트의 폰트를 classFont 클래스를 이용하여 동적으로 변경하는 API이다.
| Parameters | Type | Description |
|---|---|---|
| fontClass | class | Font Class |
| Type | Description |
|---|---|
| void | 없음 |
font class 선언은 아래와 같습니다.
classFont = function()
{
this.strfontname = "굴림체";
this.nfontsize = 9;
this.bfontbold = false; // 또는 폰트 굵기(font-weight) 값(100 ~ 900)
this.bfontitalic = false;
this.bfontunderline = false;
this.bfontstrikeout = false;
}
function btn_on_mouseup()
{
var font = new classFont();
font.strfontname = "굴림체";
font.nfontsize = 10;
font.bfontbold = true;
boj.setfontex(font);
}