Modg# and Small Font

LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT Series

Moderators: Henry, Mods

Post Reply
rob18767
LCD?
Posts: 9
Joined: Thu Jan 29, 2009 1:59 pm
Location: USA

Modg# and Small Font

Post 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. :cry:
Clark
Matrix Orbital
Matrix Orbital
Posts: 881
Joined: Fri Aug 17, 2007 10:58 am
Location: Matrix Orbital
Contact:

Post 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
Troy Clark
Design & Development
Matrix Orbital
rob18767
LCD?
Posts: 9
Joined: Thu Jan 29, 2009 1:59 pm
Location: USA

Post 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 :lol: ) 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.
Clark
Matrix Orbital
Matrix Orbital
Posts: 881
Joined: Fri Aug 17, 2007 10:58 am
Location: Matrix Orbital
Contact:

Post 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
Troy Clark
Design & Development
Matrix Orbital
Post Reply