About the necessity of using Sprite fonts vs Text objects

0 favourites
  • 11 posts
From the Asset Store
OpenAI TTS
$10 USD
Text-to-Speech plugin.Allows your Construct 3 project to convert written text into spoken words
  • Hi everyone,

    I would like to ask a question : how mandatory is it to use sprite fonts vs text objects for a game to be released on Steam?

    I ask this questions because SketchyLogic posted here that "Switching from regular text to spritefont text was a nasty process."

    Is it really mandatory to do that transition from Text objects to sprite objects for a professional-quality game? Why should I bother to do this if the text object is working well? In my case, this switch will take literally weeks, so I'd like to avoid that if possible.

    The only thing that I can think of is that if there is no internet connexion, the font switches back to a default font, but who's not connected to the internet nowadays?

  • About the only time I would consider it a necessity would be if it was a pixel art type of game.

    That's just a matter of taste.

    Especially when you consider there are fonts that mimic pixel art.

  • If it works, there's no reason to switch. As far as I know, you can also embed fonts for offline use: https://www.scirra.com/tutorials/237/ho ... -web-fonts

    The main differences are that spritefonts can be customized to look however you want and are easier to render, but text objects are easier for translating a game into multiple languages.

  • I'll tell you why I made the switch: I discovered that Windows magnification settings would cause regular text to be displayed at "incorrect" sizes. I needed my text to look absolutely consistent between computers, and I couldn't find a way to make text objects ignore the magnification settings, so I figured it would be easier to just switch to sprite fonts rather than have unreadable text for any players who had the setting turned on.

    I don't think this is a big issue, especially since only a tiny portion of players use Windows magnification, but it's worth considering if you suddenly see enormous text on someone's computer.

    Edit: rephrased for clarity.

  • SketchyLogic - I was going to try getting around that problem by turning off the display scaling for the exe in properties/compatability (right click the exe), but I haven't tried it on another machine yet so I don't know if that setting will carry over when installed on another computer.

  • Very interesting replies!

    Thanks Arima for the link, but unless I'm missing something this tutorial is for creating my own web font, with a trick to avoid the default font showing up briefly before the webfont is downloaded when being online. I don't see anything regarding offline usage of web fonts. Still useful!

    SketchyLogic

    Thanks a lot for the clarification. I was really wondering the reason behind the change and am reliefed that it's not something like "Steam prevents you from using web fonts". ^^' Thanks also for driving my attention towards the windows magnification issue. I was unaware of it.

  • In the tutorial partway down it describes how to import a font into the project files which get distributed with the game and how to use it. Isn't that what you're looking for?

  • Arima My appologies, I don't know how it happened, but for some reason I missed it! I probably need to sleep more. ^^'

    So yes, this is exaclty what I was looking for, thanks a lot!!

  • Arima

    Did you manage to get what's in that tutorial to work in order to have the webfont in a game exported with NW.js, when the computer doesn't have internet access? It doesn't seem to work for me.

    If you need more details, I started a thread here. Seems like it's possible with a external tool though.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • the reasons i seen where this two:

    1 text are heavier as cpu usage atleast in my tests. it might be that text object might be faster by 1 kb or .0.01 on my test was way faster with spritefonts.

    2 text font, is not supported on mobiles, its always going to look as arial instead of the custom font you set it in the template(example: Miryad pro bold size 30).

  • In browser based games many of the fonts supported on C2 will not appear in the correct location on a different browser.

    Firefox and Chrome and other browsers use different font parameters. Probably because they compete with each other.

    Some fonts like Bookman old style are pretty universal and will appear the same on any browser.

    Text fonts are actually copyrighted and unless released into public domain browsers and mobile systems have to pay royalties to the font owner to support that font on their systems. Too avoid that extra cost they limit their font support to universal fonts.

    So you can either use a univeral font or use sprite fonts and make your own or I use some of the free online text makers to create buttons and text sprites.

    You can find button and text makers all over but I use this one a lot:

    http://www6.flamingtext.com/

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)