IgeUiButton does not work with Font style setting

Post your help queries and engine programming questions here

IgeUiButton does not work with Font style setting

Postby Cipher » Fri May 15, 2015 2:36 am

Hi,

I try to use font setting with style at IgeUiButton object, but it doesn't work.

Code: Select all
        ige.ui.style('.button', {
            'color': '#f9ecd8',
            'borderRadius': 2,
            'backgroundColor': '#1C1510'
        });

        ige.ui.style('.button:hover', {
            'backgroundColor': '#ee7d4d'
        });

            new IgeUiButton()
                    .value('購買')
                    .styleClass('button')
                    .applyStyle({
                        'font': '2em Open Sans',
                        'width': 80,
                        'height': 30,
                        'bottom': 20
                    })
                    .padding(50)  //it also doesn't work
                    .mount(self);


Thanks for reading, any guidance or input is appreciated.
Attachments
ScreenRuler-AE81D899-FF53-4192-93DA-41A998475521.png
ScreenRuler-AE81D899-FF53-4192-93DA-41A998475521.png (78.22 KiB) Viewed 5229 times
I bought a license, I should get better service and response.
Cipher
 
Posts: 11
Joined: Fri May 08, 2015 2:59 am
Location: Taiwan, Taipei

Re: IgeUiButton does not work with Font style setting

Postby rob » Tue Sep 29, 2015 4:32 pm

Hi ya,

I don't know if an "em" unit will work, can you try "px" units?

Also what style in particular is not working? It's difficult to see what is wrong from just the image.

I didn't think OpenSans would display any different font for foreign language either. Can you provide more information about what you expected to change and what has not changed?
CEO & Lead Developer
Irrelon Software Limited
http://www.isogenicengine.com
User avatar
rob
Site Admin
 
Posts: 316
Joined: Tue Oct 22, 2013 5:08 pm


Return to Help & Questions

Who is online

Users browsing this forum: No registered users and 1 guest
cron