Author Topic: Grammer Font Editor  (Read 10496 times)

0 Members and 1 Guest are viewing this topic.

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Grammer Font Editor
« 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.

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Grammer Font Editor
« Reply #1 on: November 29, 2011, 03:15:12 am »
Very sweet! ^^

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer Font Editor
« Reply #2 on: November 29, 2011, 08:16:24 am »
Nice. :D
Sig wipe!

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer Font Editor
« Reply #3 on: November 29, 2011, 08:47:11 am »
:3 I am trying to think of how this could be better, though, any ideas?

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Grammer Font Editor
« Reply #4 on: November 29, 2011, 10:29:49 am »
Cool! Can you also use different font settings in one and the same program?

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer Font Editor
« Reply #5 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.