2008
09.12

hanks to Mingos who prompted me to add support to PNG fonts with an alpha channel, libtcod 1.4 will be able to render antialiased fonts. I’ve always been sceptical about this being possible and useful. I was wrong. Thanks to a huge optimization in the flush function (the “True colors” sample jumped from 170 frames per second to 300 on my laptop…), not only it works, but it works fast ! Concerning the usefulness, just look at the screenshot and see how smoothed fonts look fine πŸ™‚

6 comments so far

Add Your Comment
  1. Thanks for mentioning me, mate :). Now, what needs to be done is a standard antialiased terminal.png :/ so the users don’t need to make their own antialiased font sets from scratch.

    By the way, maybe it would be possible to provide several font sets (possibly as separate downloads to make libtcod itself as basic as possible) for the users to choose from? I’ll try to contribute something.

  2. Awesome πŸ™‚ Big fonts are possible now (without looking ugly). Some of the people I showed my project to complained that the characters were too tiny. I think I’ll have different fonts available, with different sizes. Oh and creative uses of alpha gradients are now in order! I’ll probably change the entire font and use iconic representations wherever possible. This was already the direction I was taking my RL anyway.

    About the other TCOD developments, I didn’t comment but they’re looking good, and yeah, UR’s character creation has some neat food for thought. Another character creation system that I admire is Legerdemain’s, which presents the user with some situations and offers some choices about what he/she would do.

  3. really cool…

  4. Yeah I'll try to provide a few good fonts with libtcod 1.4. Every contribution will be appreciated πŸ™‚

    I'll create a "free fonts" thread in libtcod's Tutorial & samples forum too.

    Jotaf, concerning Legerdemain, this is how character creation is done in Morrowind too. In fact you can choose from several methods, either this one, or more conventional RPG methods with skill points to distribute. It's great but it's very difficult to create questions that are not obvious like "you see a cute pink rabbit. Do you kill it or do you feed it ?" because this is only a skill point system, but more tedious because you have to read the questions, nor completely opaque "do you prefer sunbathing or eating blueberry pies ?" which would lead to a random character…

    Personnally, I prefer the character to be defined by the player behaviour during the game rather than predefined at its creation.

  5. Yeah you’re right, and there’s a fine line there. In that game there’s a good mix of the two types of questions so I think it turned out pretty ok! Didn’t know about Morrowing though.

    To be fair, I’m not considering character creation, or development either, for two reasons: this is gonna be a coffe-break RL (what a clichΓ¨! ;)), where you get to choose a quick adventure at the title screen, and because it seems that the focus of the game will be on player skill.

    I want this to be a game that favors quick dives, and while in many occasions stats would make my job easier, increase depth and realism, I think that a mix of the two approaches will be too hard to balance. Time will tell but for now I’m sticking to this πŸ™‚ A RL with no character development.

  6. sounds interesting πŸ™‚
    Do you have any screenshot, or something to show ? All I have right now is the multiple rooms dungeon screenshot ! If you want it to be updated on libtcod homepage, don’t hesitate to send some fresh stuff πŸ™‚