开发者

Font relative sizing & screen resolution- flash player

开发者 https://www.devze.com 2023-02-22 06:33 出处:网络
We are building a f开发者_StackOverflowlash based product (coded in flash builder) and need to ensure that the font size is readable for all standard screen resolutions- we coded fontsize to be a frac

We are building a f开发者_StackOverflowlash based product (coded in flash builder) and need to ensure that the font size is readable for all standard screen resolutions- we coded fontsize to be a fraction of screen dimensions... still we find that it looks smaller on low resolution and larger on higher resolution

we dont have this problem with other assets like containers/images etc

Any ideas why this happens? Any thoughts on how we can make it uniform across screen resolutions?


Flex 4.5 has the latest version of the TLF library (TLF 2.0) directed at handling large amounts of text better and displaying text at different resolutions.

This article also helps highlight some of the changes coming in 4.5. Take a look at the sections titled Handling Resolution and CSS Media Queries and see if it helps.

A quick example from that site:

@media (os-platform: "Android") and (application-dpi: 240) {
s|Button {
     fontSize: 10;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号