https://linen.dev logo
Join Discord
Powered by
# haxe-ui
  • m

    most-caravan-45834

    04/15/2020, 5:15 AM
    Are both haxe-ui and the flixel backend solid enough to use?
  • h

    handsome-television-62908

    04/15/2020, 7:18 AM
    HaxeUI is always solid 🤙 HaxeUI-Flixel? Never used it . . .
  • b

    bright-gpu-74537

    04/15/2020, 8:18 AM
    im not entirely sure about haxeui-flixel if im honest, i think @User is using it, and maybe others, but i cant personally say that ive used it. I did run into some rendering issues last time i did use it, but i think it was my openfl / flixel that was out of date and breaking things. My advice would be to take it for a spin and evaluate it - i know would be interested in the results
  • m

    most-caravan-45834

    04/15/2020, 2:29 PM
    Thanks guys, I'll give it a try, see how it goes
  • m

    most-elephant-7180

    04/16/2020, 6:21 AM
    Hello there, I am currently evaluating Haxe with OpenFL/HaxeUI frameworks. I am testing some basic code using VSCode on Windows. I work on laptop where my default display configuration is set with 125% scale. When testing the build on any target (tried neko/windows/html5) the text fields aren't as sharp as expected. I've added in project.xml but that didn't change anything. I also played with Toolkit.scale parameter, turned on/off Toolkit.autoscale, but that didn't affect anything in rendering. I use Haxe 4.0.5 and installed haxelib are : actuate: [1.8.9] box2d: [1.2.3] haxeui-core: [1.0.25] haxeui-openfl: [1.0.7] hscript: [2.4.0] hxcpp: [4.0.64] layout: [1.2.1] lime-samples: [7.0.0] lime: [7.7.0] openfl-samples: [8.7.0] openfl: [8.9.6]
  • m

    most-elephant-7180

    04/16/2020, 6:22 AM
    This is what I got when windows display scale is set to 150% You can see rendered texts are blurry and not as sharp as in window's title or in VSCode UI
  • m

    most-elephant-7180

    04/16/2020, 6:25 AM
    The Main.hx code can be found here https://pastebin.com/XQFfp1pT
  • m

    most-elephant-7180

    04/16/2020, 6:28 AM
    And this is what trace calls output https://pastebin.com/7ZQ6WBJH
  • m

    most-elephant-7180

    04/16/2020, 6:31 AM
    Might be an OpenFL/Lime issue because a TextField suffers the same blurry render issue
  • m

    most-elephant-7180

    04/16/2020, 6:36 AM
    I will be happy to read any input regarding this, thank you 🙂
  • b

    bright-gpu-74537

    04/16/2020, 7:55 AM
    Hi, so this is likely openfl/lime font issue as you mentioned, haxeui doesnt do any text rendering itself and delegates that type of stuff to a its host framework (via a backend, haxeui-openfl in your case). So, in this case its an openfl TextField. Which i presume looks exactly the same as the haxeui version. Text has always looked a little off to me in openfl (blurry, strangely spaced sometimes), but its getting better and better and has already improved and incredible amount over the years, and i believe even some other improvements ready to go in a branch (though i cold be imagining/wishing that). openfl html5 output is better iirc and some fonts work better than others. Also, nme font rendering is really smooth in windows at least (would be nice if openfl incorporated that system somehow).
  • m

    most-elephant-7180

    04/16/2020, 7:57 AM
    Thank you @User I cross posted my message on openfl discord server to figure out what happens.
  • m

    most-elephant-7180

    04/16/2020, 7:58 AM
    This is how it renders when operating system display scale is 100%, very sharp
  • b

    bright-gpu-74537

    04/16/2020, 8:00 AM
    interesting
  • b

    bright-gpu-74537

    04/16/2020, 8:01 AM
    is the first "This is a test" a normal, non-haxeui textfield?
  • m

    most-elephant-7180

    04/16/2020, 8:06 AM
    > its the first "This is a test" a normal, non-haxeui textfield? @User Yes, pure openfl TextField
  • b

    bright-gpu-74537

    04/16/2020, 8:08 AM
    its hard to see exactly, but that suffers from the same blurring?
  • b

    bright-gpu-74537

    04/16/2020, 8:11 AM
    there is some interesting properties to play with:
  • m

    most-elephant-7180

    04/16/2020, 8:12 AM
    > its hard to see exactly, but that suffers from the same blurring? @User It seems so
  • b

    bright-gpu-74537

    04/16/2020, 8:12 AM
    textfield.antialiasType, textfield.gridFitType, textfield.sharpness
  • b

    bright-gpu-74537

    04/16/2020, 8:14 AM
    gridFitType sounds interesting (you'd need to set antialiasType first)
  • m

    most-elephant-7180

    04/16/2020, 8:14 AM
    > textfield.antialiasType, textfield.gridFitType, textfield.sharpness @User Already played with this but I'm quite sure it's related to stage.contentScaleFactor always staying to 1 or Capabilities.screenDPI always staying to 72
  • b

    bright-gpu-74537

    04/16/2020, 8:16 AM
    can you set contentScaleFactor?
  • m

    most-elephant-7180

    04/16/2020, 8:16 AM
    Seems only available as a getter :/
  • b

    bright-gpu-74537

    04/16/2020, 8:17 AM
    not sure then to be honest
  • b

    bright-gpu-74537

    04/16/2020, 8:17 AM
    maybe an openfl expert might be able to shed some better light on it though
  • m

    most-elephant-7180

    04/16/2020, 8:17 AM
    Was also wondering how Tootlkit.scale may have an effect on rendering.
  • m

    most-elephant-7180

    04/16/2020, 8:18 AM
    I was trying to tweak it but nothing changed
  • m

    most-elephant-7180

    04/16/2020, 8:18 AM
    Anyway thank you for all those helpful inputs
  • b

    bright-gpu-74537

    04/16/2020, 8:18 AM
    thats just used internally by haxeui itself... you can turn it off completely, but in essence it just multiplies the UI size by that value so it shouldnt really affect anything
1...192193194...1687Latest