• @TTBangler,

    The way I understand that when you use a different font than the default one and it has a different size, you can pass the size in this option so the menu lib knows how to handle positioning of the individual menu items, and - I assume - to know how many items fit on the screen for scrolling.

    There is another property to actually change to / set the font you want: "predraw": function(gfx) { ...; gfx.setFont(...); ...; }.

    .setFont(...) provides options for the size, but I'm not sure if it is enough to set the font with height without setting the fontHeight property, because font size consists usually an x and a y component, where font height provides only one - with 'normal' orientation, it is the +y or line height related component.

  • Thanks @allObjects, for your reply and suggestion!

    I just tried adding the "predraw" option to set a larger font but it didn't seem to have any effect (or result in any errors). Here's my updated code, thank you in advance for checking to see if I did something incorrectly:

        var mainMenu = {
          "" : { "title" : "-- Main Menu --", 
                "fontHeight": 40, 
        "predraw" : function(gfx) {
          gfx.setFont("Vector", 40);
        }
    },
          "Item 1" : function() { undefined; },
          "Item 2" : function() { undefined; },
        };
        E.showMenu(mainMenu);
    
About

Avatar for allObjects @allObjects started