黑莓设备

编程入门 行业动态 更新时间:2024-10-28 13:27:36
黑莓设备 - 获取设置/默认字体大小(Blackberry Device - getting set/default font size)

有没有办法可以访问手机上设置的字体大小?

我想使用类似下面的内容在屏幕上设置字体:

setFont(Font.getDefault().derive(Font.PLAIN, 20));

用应用程序中设置的字体替换上面的20,最多我将确定的最大值。 我正在使用JDE 4.5.0。

谢谢

Is there a way that I can access the font size that is set on the handset?

I would like to use something like the following to setup the font on a screen:

setFont(Font.getDefault().derive(Font.PLAIN, 20));

replacing the 20 in the above with the font set in the application, up to a maximum that I'll determine. I'm using JDE 4.5.0.

Thanks

最满意答案

Font.getDefault().getHeight() Font.getDefault().getHeight()

更多推荐

本文发布于:2023-07-25 23:09:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1267584.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:黑莓   设备

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!