!bsGTVBrdOpvunDcZEX:matrix.org

Solarus

701 Members
General community chat. Feel free to say hi and ask questions.21 Servers

Load older messages


SenderMessageTime
11 Dec 2018
@alexgleason:matrix.orgAlex Gleason wekhter: Welcome! 20:45:35
@alexgleason:matrix.orgAlex GleasonOur latest font-related issue: https://gitlab.com/solarus-games/solarus-free-resource-pack/issues/10 Trying to choose the best tiny font for writing license info in sprite sheets20:47:11
@alexgleason:matrix.orgAlex Gleason
In reply to @_discord_399599648546750466:t2bot.io
yes 😃 and i saw that you have a discord server, so i joined. i love open source projects! and i'm interested in seeing what kind of specifications (size etc) you would recommend for fonts in this engine that i can keep in mind when creating more

The default quest size is 320x240, although it can be changed on a per-project basis. I'm using 256x144 for my game.

All of your fonts could be used with most Solarus projects. It's just that this decision needs to be made at the start of the project. Changing the font in the middle of development means you might have to edit every piece of dialog and change where the line-breaks are because the character sizes are different.

20:52:47
@alexgleason:matrix.orgAlex GleasonComicoro, Pixolde, and Enter Command are basically interchangeable in a Solarus quest because overall the character widths are not so different.20:54:25
@alexgleason:matrix.orgAlex GleasonScreenshot from 2018-12-11 15.55.13.png
Download Screenshot from 2018-12-11 15.55.13.png
20:55:22
@alexgleason:matrix.orgAlex Gleasonwhen we create dialog, we type it into a box like this20:55:37
@_discord_399599648546750466:t2bot.iowekhter cool! all very good to know. what about line height/space between lines? or can things like that be changed within the editor separately? 20:56:24
@alexgleason:matrix.orgAlex Gleason
In reply to @_discord_399599648546750466:t2bot.io
cool! all very good to know. what about line height/space between lines? or can things like that be changed within the editor separately?

Solarus only handles "lines" of text when it actually draws them. For multi-line text we have to split it into individual lines and then define the XY coordinates of each line. I don't know very much about the ttf format and how that deals with stuff like line-height.

example code from one of my projects:

  do -- draw letter text
    local letter_text = sol.language.get_dialog("game.intro.letter").text
    local lines = get_lines(letter_text)
    for i, line in ipairs(lines) do
      local letter_gfx = sol.text_surface.create({font_size=16, text=line})
      local x = 8
      local y = i*13 - 3
      if i > 2 then -- HACK: second box of text needs a different padding
        y = y + 2
      end
      letter_gfx:draw(self.box_text, x, y)
    end
  end
21:02:56
@alexgleason:matrix.orgAlex Gleason This is basically my way of defining a line-height of 13px: local y = i*13 - 3 21:03:59
@_discord_475028720575315968:t2bot.iooclero Christopho I contacted wekhter yesterday to tell him I made a monospace version of Enter Command, and he also made it ^^ 21:14:25
@_discord_475028720575315968:t2bot.iooclero wekhter welcome to Solarus 😃 Your expertise in foots is a welcome addition to the team ! 21:15:05
@_discord_475028720575315968:t2bot.iooclero edit: wekhter welcome to Solarus 😃 Your expertise in foots is a welcome addition to the team ! -> wekhter welcome to Solarus 😃 Your expertise in fonts is a welcome addition to the team ! 21:15:11
@_discord_399599648546750466:t2bot.iowekhter thanks for the welcome! and also the info about line height 21:16:42
@_discord_399599648546750466:t2bot.iowekhter does text within games need to be monospace always? 21:17:07
@_discord_475028720575315968:t2bot.iooclero no, text in game dialogs does not need to be monospace 21:17:29
@_discord_475028720575315968:t2bot.iooclero we needed a monospace font for the command-line interface integrated into our game 21:17:56
@_discord_399599648546750466:t2bot.iowekhter ah, i see! that makes sense 21:18:11
@_discord_475028720575315968:t2bot.iooclero I made a custom font based on Zelda A Link To The Past / Minish Cap letters, and this is what we are going to use during game dalogs 21:19:03
@_discord_475028720575315968:t2bot.iooclero edit: I made a custom font based on Zelda A Link To The Past / Minish Cap letters, and this is what we are going to use during game dalogs -> I made a custom font based on Zelda A Link To The Past / Minish Cap letters, and this is what we are going to use during game dialogs 21:19:05
@_discord_475028720575315968:t2bot.iooclero we previsouly used Minecraftia 21:19:13
@_discord_475028720575315968:t2bot.iooclero edit: we previsouly used Minecraftia -> we previously used Minecraftia 21:19:20
@_discord_475028720575315968:t2bot.iooclero For non-Zelda games, we will use Enter Command 21:19:31
@_discord_399599648546750466:t2bot.iowekhter cool! 21:20:02
@_discord_475028720575315968:t2bot.iooclero I am currently making the video trailer, and a small part will be about the integration of your fonts in the Solarus free resource pack 😃 21:20:24
@_discord_399599648546750466:t2bot.iowekhter oh, very cool! 21:20:38
@alexgleason:matrix.orgAlex Gleason wekhter: one of the reasons I preferred your fonts is because the letter spacing is always excellent. 21:23:36
@_discord_399599648546750466:t2bot.iowekhter thank you 😃 21:24:26
@alexgleason:matrix.orgAlex GleasonScreenshot from 2018-12-11 16.24.21.png
Download Screenshot from 2018-12-11 16.24.21.png
21:24:31
@_discord_475028720575315968:t2bot.iooclero it goes very well with the global style of the game 21:26:14
@_discord_399599648546750466:t2bot.iowekhter so cool to see things in situ! i'm working on a few different fonts at the moment, some of which probably aren't going to be appropriate for large chunks of text (grafitti-inspired) but i'm keeping in mind creating more that are good for general use like Enter Command that i hope people will find helpful 21:27:18

There are no newer messages yet.


Back to Room ListRoom Version: 1