Omnimaga

Omnimaga => Completed => Our Projects => Grammer => Topic started by: Xeda112358 on November 28, 2011, 11:52:55 pm

Title: Grammer Font Editor
Post by: Xeda112358 on November 28, 2011, 11:52:55 pm
So for the past few days I have been making comments about a "variable size font editor for Grammer." So now it is time to explain and release :)
Pretty much, I added a variable size font to Grammer and that made me add a command to swap between the fixed font and variable size font. So while I was at it, I finally included the ability to use your own custom fonts as well! But making a font is time consuming and tedious at best and typing in all the hex could get migraine inducing. So I made a font editor :)

Pretty much, you can cycle forward through the characters, change their sizes, edit their appearance, et cetera. The characters can be 0 to 9 pixels wide and 1 to 16 pixels tall. The readme explains the controls and how to use your brand new font :) There is a sample fontset included that is currently used by Grammer (so it isn't too tedious). I should eventually add an option to create new fixed size fonts, but the current 4x6 font has a weird syntax as it is stored as nibbles for extra compression.
Title: Re: Grammer Font Editor
Post by: TIfanx1999 on November 29, 2011, 03:15:12 am
Very sweet! ^^
Title: Re: Grammer Font Editor
Post by: Yeong on November 29, 2011, 08:16:24 am
Nice. :D
Title: Re: Grammer Font Editor
Post by: Xeda112358 on November 29, 2011, 08:47:11 am
:3 I am trying to think of how this could be better, though, any ideas?
Title: Re: Grammer Font Editor
Post by: Sorunome on November 29, 2011, 10:29:49 am
Cool! Can you also use different font settings in one and the same program?
Title: Re: Grammer Font Editor
Post by: Xeda112358 on November 29, 2011, 04:14:22 pm
You can toggle the font as you need to. For example, if you wanted to use both built in fonts plus your own:
Code: [Select]
Output(1,Get("UFont   ;Sets your font
Text(0,25,"Grammer 2
Output(1                  ;Sets the built in variable size font
Text(8,30,"The App
Output(0                  ;Sets the default font
Text(16,7,"By Zeda E.
DispGraph
I could add an argument to allow you to choose the font used to display text, though... Maybe the r token? So for example, instead of actually changing the font used by the program, it chooses just the font used by the routine.