Tuesday, July 7, 2009

Making Sharper Flex Application with Sharper Fonts



I am not a multi fan of using fonts in Flex , i had to put a very smaller font which was to be very sharp , Here is a example to add it , i tried it in my css but it can be done with setStyle Attribute too, here is the code sniplet and the result
Just define following in your css
@font-face
{
src: url("../font/kroe0555.ttf");
fontFamily: StandardFont;
flashType: true;
}
Application
{
color : #CCCCCC;
focus-thickness : 0.4;
font-size : 8;
font-grid-fit-type :subpixel;
font-sharpness : 1;
font-anti-alias-type: normal;
font-weight : normal;
}

Cheers
Varun

No comments:

About Me