Fonts different on real device

11 views
Skip to first unread message

Gareth Murfin

unread,
Jul 26, 2016, 11:03:50 AM7/26/16
to CodenameOne Discussions

Steve Hannah

unread,
Jul 26, 2016, 11:29:47 AM7/26/16
to codenameone...@googlegroups.com
Default fonts and their sizes vary by platform.  If you're laying out some labels with absolute positioning and you're not deriving your fonts to be specific pixel height, then you could get this.  I'd have to see some code to know why this is happening to you.  E.g.  what layout manager, styles, fonts, etc...

Steve

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/95c1420b-45d8-4f89-bd41-40b9d8e9efbc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Steve Hannah
Software Developer
Codename One

Gareth Murfin

unread,
Jul 26, 2016, 11:47:21 AM7/26/16
to CodenameOne Discussions

It is a strange case possibly because what I am doing is rendering a game to a 320x240 image, then scaling it up to the fullscreen size and displaying that (quite a weird way to make an old game work I guess but the easiest I can think of). Having said that I doubt this would affect fonts since the scaling is done right at the end. 

Edit, I just realised I have a copy of the graphics object, and wasnt callign set font on that, so now actually it is ok! weird how it would be different on device.

Here is how I make my fonts:


On Tuesday, July 26, 2016 at 11:29:47 PM UTC+8, Steve Hannah wrote:
Default fonts and their sizes vary by platform.  If you're laying out some labels with absolute positioning and you're not deriving your fonts to be specific pixel height, then you could get this.  I'd have to see some code to know why this is happening to you.  E.g.  what layout manager, styles, fonts, etc...

Steve
On Tue, Jul 26, 2016 at 8:03 AM, Gareth Murfin <gareth...@gmail.com> wrote:

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages