haxeui / haxeui-core

The core library of the HaxeUI framework
http://haxeui.org
MIT License
340 stars 71 forks source link

font-size doesn't change via css #169

Closed R3D9477 closed 5 years ago

R3D9477 commented 6 years ago

Expected Behavior

font-size of label doesn't change via css

Current Behavior

font-size must be changed to 24px

Steps to Reproduce (for bugs)

tested only for openfl backend (neko & hxcpp)

Test app / minimal test case

style.css

.style2 {
    font-size: 24px;
}

UI.xml <text text="My label text 2" styleName="style2" />

Your Environment

Haxe 3.4.2 haxeui-openfl & haxeui-core from git (master) full project here

Thanks.

sh-dave commented 6 years ago

Shouldn't styleName actually be styleNames?

MSGhero commented 6 years ago

Both are accepted.

R3D9477 commented 6 years ago

Last test with openfl 6.5.3 1 font size wasn't changed :(

project: test.zip

intoxopox commented 6 years ago

Any progress on this issue?

ianharrigan commented 6 years ago

None as of yet - but i can reproduce - so thats the good news

flashultra commented 5 years ago

I have same issue, but I think also text-decoration: underline and font-style: bold; not works. This is new-component-method branch. I think it works on master ( using openfl - html5 and flash target)

ianharrigan commented 5 years ago

Ive provided a fix for this in master and a temp fix for this in new-component-method branch

ianharrigan commented 5 years ago

Can we retest this and close if it all works?

Cheers, Ian

flashultra commented 5 years ago

For me font-size and font-style works. I also test text-decoration: underline; for label , but this doesn't works.

R3D9477 commented 5 years ago

I can't test it soon, sorry. If it works for you, close this issue or I can do it