https://linen.dev logo
Join Discord
Powered by
# ceramic
  • g

    gifted-whale-78169

    08/08/2022, 2:05 PM
    agreed
  • g

    gifted-whale-78169

    08/08/2022, 3:35 PM
    i want to change the active scene while the app is running, do i just do
    app.scene.main = new Scene();
    ?
  • g

    gifted-whale-78169

    08/08/2022, 4:13 PM
    fixed
  • g

    gifted-whale-78169

    08/08/2022, 5:22 PM
    what font file types does ceramic support? ive tried loading ttf fonts but ceramic doesnt recognize it
  • g

    gifted-whale-78169

    08/08/2022, 5:28 PM
    i know it supports fnt, but anything else?
  • g

    gifted-whale-78169

    08/08/2022, 5:39 PM
    Copy code
    Request status was 404 / Not Found /home/sharpcdf/ceramic/git/clay/src/clay/web/WebIO.hx:102
    failed to load image from bytes, on error: [object Event] /home/sharpcdf/ceramic/git/clay/src/clay/web/WebAssets.hx:216
    :/
  • g

    gifted-whale-78169

    08/08/2022, 5:39 PM
    Copy code
    haxe
    t.font = assets.font(Fonts.FULL_PACK);
  • g

    gifted-whale-78169

    08/08/2022, 7:07 PM
    im using https://ttf2fnt.com and i get the above error when i use the output files
  • b

    billowy-waiter-28954

    08/08/2022, 8:36 PM
    Are you sure you put the png image next to the fnt file in assets/ folder ?
  • b

    billowy-waiter-28954

    08/08/2022, 8:37 PM
    Ceramic only supports bitmap fonts at the moment
  • g

    gifted-whale-78169

    08/08/2022, 9:14 PM
    yea theyre right next to eachother
  • g

    gifted-whale-78169

    08/08/2022, 9:14 PM
    let me send a screenshot
  • g

    gifted-whale-78169

    08/08/2022, 9:16 PM
    both daydream and FullPack dont work
  • b

    billowy-waiter-28954

    08/08/2022, 9:21 PM
    Send the files over, I’ll check if they work on my side
  • g

    gifted-whale-78169

    08/08/2022, 9:28 PM
    https://github.com/sharpcdf/ceramic-test
  • b

    billowy-waiter-28954

    08/08/2022, 9:35 PM
    It cannot load the font because the image file referenced in the fnt content is wrong: https://github.com/sharpcdf/ceramic-test/blob/master/assets/FullPack.fnt#L3
  • g

    gifted-whale-78169

    08/08/2022, 9:35 PM
    thats odd
  • g

    gifted-whale-78169

    08/08/2022, 9:36 PM
    whats a better way to get bitmap fonts?
  • b

    billowy-waiter-28954

    08/08/2022, 9:36 PM
    You can fix it manually
  • g

    gifted-whale-78169

    08/08/2022, 9:36 PM
    oh wait
  • g

    gifted-whale-78169

    08/08/2022, 9:36 PM
    i see
  • b

    billowy-waiter-28954

    08/08/2022, 9:36 PM
    Just replace UQLiwfcTLcg7Ds4S7FZueEmv.ttf_0.png with FullPack.png
  • g

    gifted-whale-78169

    08/08/2022, 9:36 PM
    yea
  • g

    gifted-whale-78169

    08/08/2022, 9:36 PM
    let me try it
  • g

    gifted-whale-78169

    08/08/2022, 9:37 PM
    well now no text shows at all?
  • g

    gifted-whale-78169

    08/08/2022, 9:38 PM
    with both fonts
  • b

    billowy-waiter-28954

    08/08/2022, 9:38 PM
    Can't say why, but maybe instead of using this online tool to convert your ttf font, you can use
    ceramic font
    command
  • g

    gifted-whale-78169

    08/08/2022, 9:39 PM
    i didnt see that!
  • b

    billowy-waiter-28954

    08/08/2022, 9:39 PM
    Copy code
    ceramic font --font YourFont.ttf
    will generate a bitmap font that should work with ceramic
  • g

    gifted-whale-78169

    08/08/2022, 9:39 PM
    ill try it, thanks :)
12345...124Latest