Textplus Font Tool - A level built for previewing and editing fonts

Share and discuss custom LunaLua code and content packs for SMBX2.

Moderator: Userbase Moderators

Rixitic
Spike
Spike
Posts: 266
Joined: Sat Dec 12, 2015 1:00 am
Contact:

Textplus Font Tool - A level built for previewing and editing fonts

Postby Rixitic » Wed Aug 18, 2021 12:45 am

You know those preview tools on font websites where you can type in any text you want and it'll show you the text in a given font?
Well, SetaYoshi and I made the SMBX2 equivalent of those things.

Image

This level automatically imports all basegame textplus fonts as well as ones located in the Font Tool > fonts folder, with the latter being listed first. As examples, I've included the fonts from my "font factory" thread.

Currently there's three separate modes:
  • the Preview mode shown in the above gif
  • a basic Edit mode for changing font and per-character properties
  • an About mode with credits and maybe more info in the future idk
The circular arrow button next to the font scrollbox reloads the currently-selected font's ini file, and the floppy disk icon saves a new ini with any adjustments you've made to Font Tool > output (if the folder doesn't exist, you may need to make it).

Download it here (Github repo)

Known issues (as of v1.1.1):
  • Entering values for spinboxes via the keyboard is currently broken doesn't work sometimes and idk why
  • The columns and rows spinboxes do not affect the font in-level, and changing the height of a character only adjusts its texture coordinates (changes to all three will still save properly to the output ini)
Planned eventual features:
  • glyphdefaults editing
  • Font image display mode as an alternative to the test string display
  • Sound effect toggle button
  • Tooltips maybe?

Hopefully this helps with creating new fonts for your levels and episodes!
Last edited by Rixitic on Tue Jul 12, 2022 1:36 am, edited 7 times in total.

Marioman2007
2025 Egg Hunter
2025 Egg Hunter
Posts: 529
Joined: Tue Aug 25, 2020 3:19 am
Flair: Dr. Bones
Pronouns: He/Him

Re: Textplus Font Tool - A level built for viewing and previewing fonts

Postby Marioman2007 » Wed Aug 18, 2021 2:45 am

Very useful tool! Good Job!

Rixitic
Spike
Spike
Posts: 266
Joined: Sat Dec 12, 2015 1:00 am
Contact:

Re: Textplus Font Tool - A level built for previewing and editing fonts

Postby Rixitic » Mon Dec 13, 2021 1:55 am

On a whim I updated the level to version 1.1.0, which comes with a WIP Edit mode: you can change the current font's ascent, descent, and spacing as well as the width, height, and baseline of individual characters, then save the modified font to an output folder.

However, in the process I seem to have broken setting spinbox properties with the keyboard in the process :oops:
I plan to fix that and add a few other features after Christmas, assuming Seta doesn't do so in the meantime.


Actually it does still work? I was able to use it while making a new font. No clue why it wasn't working before, but, uh, I guess if it doesn't work for you just... try messing around with the UI a bit, reloading the level, or even reloading SMBX2, and then maybe it'll work again...???

Rixitic
Spike
Spike
Posts: 266
Joined: Sat Dec 12, 2015 1:00 am
Contact:

Re: Textplus Font Tool - A level built for previewing and editing fonts

Postby Rixitic » Tue Jul 12, 2022 1:35 am

Welp, it was finally brought to my attention that an error Marioman2007 got two months ago was caused by the output folder not actually being included because it wasn't on the repo.

orz

So, that's fixed. And that's the only change aside from updating the version number to 1.1.1 -- I do still want to add the stuff I mentioned in the previous post at some point, I just haven't gotten around to it yet and have too many other things on my plate right now -- so if you've already got the tool there's no need to re-download it. Just make sure to add an output folder in Textplus-Font-Tool > Font Tool if you don't already have it.
Image

I'll aim to be much more prompt with any further hotfixes, so if anyone encounters any other issues please don't hesitate to let me know!


Return to “LunaLua”

Who is online

Users browsing this forum: Alexx0612 and 3 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari