<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace Views "Views.*";
@namespace spark "spark.skins.spark.*";
@font-face{
src: url("/assets/font/BareunDotumOTF1.otf");
fontFamily: CustomFont_CFF;
embedAsCFF: true;
}
@font-face{
src: url("/assets/font/BareunDotumOTF1.otf");
fontFamily: CustomFont;
embedAsCFF: false;
}
global{
fontFamily:"CustomFont";
}
s|Label{
fontFamily:"CustomFont_CFF";
}
s|Button{
fontFamily:"CustomFont";
fontWeight: normal;
}
</fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace Views "Views.*";
@namespace spark "spark.skins.spark.*";
@font-face{
src: url("/assets/font/BareunDotumOTF1.otf");
fontFamily: CustomFont_CFF;
embedAsCFF: true;
}
@font-face{
src: url("/assets/font/BareunDotumOTF1.otf");
fontFamily: CustomFont;
embedAsCFF: false;
}
global{
fontFamily:"CustomFont";
}
s|Label{
fontFamily:"CustomFont_CFF";
}
s|Button{
fontFamily:"CustomFont";
fontWeight: normal;
}
</fx:Style>
위와 같이 스타일을 지정해준다.
label에는 cff true, button 등 다른 ui component는 cff false 를 이용해야 하기 때문.
또, button 은 기본적으로 bold 폰트를 사용하게 되어있기 때문에 bold 폰트를 별도로 임베딩하거나, normal 폰트를 사용하도록 해주어야 한다.





덧글