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

    bright-gpu-74537

    01/15/2023, 12:00 PM
    is the bitmap font test supposed to be upside down??
  • c

    creamy-animal-95850

    01/15/2023, 12:00 PM
    yep that's exactly what I saw
  • c

    creamy-animal-95850

    01/15/2023, 12:01 PM
    regular bitmaps are flipped for some reason and can cause the program to crash sbf fonts just show the black/color channel characters
  • b

    bright-gpu-74537

    01/15/2023, 12:01 PM
    ok, so its not something you've done, but another haxeui-heaps text bug?
  • b

    bright-gpu-74537

    01/15/2023, 12:02 PM
    yeah, nothing special going on in the app
  • c

    creamy-animal-95850

    01/15/2023, 12:02 PM
    yes, I tried to make it bare-bones to isolate the issue
  • c

    creamy-animal-95850

    01/15/2023, 12:03 PM
    was wondering if you'd get that error in your own heaps app using those fonts
  • b

    bright-gpu-74537

    01/15/2023, 12:03 PM
    yeah, both labels are certainly off...
  • b

    bright-gpu-74537

    01/15/2023, 12:03 PM
    tbf, i think i only ever tested with ttf
  • b

    bright-gpu-74537

    01/15/2023, 12:03 PM
    so almost certainly something missing in haxeui-heaps
  • b

    bright-gpu-74537

    01/15/2023, 12:10 PM
    is this what the font is supposed to look like??
  • b

    bright-gpu-74537

    01/15/2023, 12:10 PM
    (ignore the bitmap one)
  • b

    bright-gpu-74537

    01/15/2023, 12:11 PM
    maybe it needs additional params in the
    toSdfFont
    to make it look nice?
  • b

    bright-gpu-74537

    01/15/2023, 12:11 PM
    ... do you have a (non haxeui) app that shows these fonts using just the normal heaps api ( @creamy-animal-95850 )
  • c

    creamy-animal-95850

    01/15/2023, 12:15 PM
    Yes! The params I used for toSdfFont() were size=12, channel=4, alphaCutoff=.5, smoothing=.45
  • b

    bright-gpu-74537

    01/15/2023, 12:15 PM
    ah, lemme try
  • b

    bright-gpu-74537

    01/15/2023, 12:16 PM
    much better
  • c

    creamy-animal-95850

    01/15/2023, 12:16 PM
    awesome
  • b

    bright-gpu-74537

    01/15/2023, 12:16 PM
    now, i wonder how im gonna make this transparent to the user, or, give the user the ability to change these values.... 🤔
  • b

    bright-gpu-74537

    01/15/2023, 12:18 PM
    have you also used the bitmap font in a non-haxeui app? And it doesnt reverse the texture??
  • c

    creamy-animal-95850

    01/15/2023, 12:18 PM
    lemme check one second
  • c

    creamy-animal-95850

    01/15/2023, 12:20 PM
    yes it looks like this:
  • c

    creamy-animal-95850

    01/15/2023, 12:20 PM
    non-sdf
  • b

    bright-gpu-74537

    01/15/2023, 12:20 PM
    weird... is that app shareable?
  • c

    creamy-animal-95850

    01/15/2023, 12:21 PM
    it's a big one
  • b

    bright-gpu-74537

    01/15/2023, 12:21 PM
    hmmm, fair enough... is it easy enough for you to create a new heaps app (no haxeui) that loads these two fonts...
  • c

    creamy-animal-95850

    01/15/2023, 12:21 PM
    I could whip up one yeah
  • b

    bright-gpu-74537

    01/15/2023, 12:21 PM
    i can probably do it, but it wont be till later
  • b

    bright-gpu-74537

    01/15/2023, 12:22 PM
    great, that would help a bunch since i could see "the right way" to do it (im no heaps expert, so its likely im just doing things arse about face)
  • c

    creamy-animal-95850

    01/15/2023, 12:27 PM
    oops I've been saying 'sbf' instead of 'sdf'
1...137613771378...1687Latest