Page 1 of 1
Modg# and Small Font
Posted: Tue Feb 24, 2009 12:00 pm
by rob18767
I would like to modify the small font, which I downloaded from the website, by adding extra characters (> 126). I looked at Modg# however when I try to generate the new font it can base it on the small font.
I cannot add new characters in the modify section either.

Posted: Mon Mar 02, 2009 9:41 am
by Clark
Hi Rob,
My apologies for the delay, I see you are looking to create a font with a few extra characters. The simplest thing to do would be to find an existing font with the characters you are looking for, but there are ways to make your own.
If you locate the MOGD# install folder in your program files, you will notice a font folder. It contains an mgf file and folder for each font installed. If you've got a hex editor, like ultra edit, you can open up that mgf file and alter it.
Most of the info in that file will be rather unintelligible. The first byte is the number of characters in the font name, then comes the name. The part you'll be interested in is the last three bytes.
The last byte is the value of the last character, you can increase that as you wish. Next to that is the start value, then character width, and height.
Once you've increased the number of characters in the font, you'll want to create those characters in the font folder. For a mono spaced font such as small filled it should be as easy as copy, paste, edit, and most importantly rename.
This procedure is a little involved, but if you do manage to damage the small filled font in any way, you can always download a new copy. If you do have any further questions, please just let me know.
Thanks,
~Troy
Posted: Thu Mar 05, 2009 2:16 pm
by rob18767
Thanks Troy
I managed to 'hack it' a new font to get what I wanted.
I used the original Modg software (Matrix Orbital Graphics Demo Version 1.0 build 1.0.0.81) to edit the small font which I then gave a new name (small fontx - how original

) and made the character range 0 to 253.
I then copied the small fontsx .mgf file and folder from the modg software fonts folder to the modgsharp software folder. I could then edit the new font (with the extended range of characters) in modgsharp.
Posted: Fri Mar 06, 2009 9:10 am
by Clark
Hi Rob,
Great to hear that you managed to piece together a larger font set; looks like you've been quite resourceful. Also, thanks so much for posting your solution for other users to see and use; I'm sure it will save a great deal of time and frustration.
~Troy