Fonts on Windows Phone

21 views
Skip to first unread message

Bryan Buchanan

unread,
Jul 3, 2016, 5:40:53 PM7/3/16
to CodenameOne Discussions
True Type fonts don't seem to work on Windows phone.

The first screenshot is from Android, the second from Lumia 640 WP10.

Form hi = new Form("Welcome");
        hi.setLayout(new BoxLayout(BoxLayout.Y_AXIS));
        hi.setScrollableX(false);
        hi.setScrollableY(true);

        Label l = new Label("THIS IS 10, this is 10");
        l.setUIID("BigLabel10");
        hi.add(l);
        l = new Label("THIS IS 8, this is 8");
        l.setUIID("BigLabel8");
        hi.add(l);
        l = new Label("THIS IS 6, this is 6");
        l.setUIID("BigLabel6");
        hi.add(l);
        l = new Label("THIS IS 4, this is 4");
        l.setUIID("BigLabel4");
        hi.add(l);
        l = new Label("THIS IS 3, this is 3");
        l.setUIID("BigLabel3");
        hi.add(l);
        l = new Label("THIS IS 2.5, this is 2.5");
        l.setUIID("BigLabel2point5");
        hi.add(l);
        l = new Label("THIS IS 2, this is 2");
        l.setUIID("BigLabel2");
        hi.add(l);

        hi.show();
device-2016-07-04-073248.png
wp_ss_20160704_0003.png
Screenshot - 040716 - 07:33:59.png
Screenshot - 040716 - 07:34:42.png

Bryan Buchanan

unread,
Jul 3, 2016, 10:23:15 PM7/3/16
to CodenameOne Discussions
Works if I include a ttf file with the app.

Screenshot - 040716 - 12:22:17.png
wp_ss_20160704_0004.png

Shai Almog

unread,
Jul 4, 2016, 12:08:07 AM7/4/16
to CodenameOne Discussions
The port is based on an older port that predated the native: font scheme. This is probably something we need to add.

Steve Hannah

unread,
Jul 4, 2016, 12:53:19 PM7/4/16
to codenameone...@googlegroups.com

On Sun, Jul 3, 2016 at 9:08 PM, Shai Almog <shai....@gmail.com> wrote:
The port is based on an older port that predated the native: font scheme. This is probably something we need to add.

--
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/3afa2610-6b90-44c6-b3d1-165f5b9cb7d1%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Steve Hannah
Software Developer
Codename One
Reply all
Reply to author
Forward
0 new messages