Mac font Class/module

About Monkey 2 Forums Monkey 2 Projects Mac font Class/module

This topic contains 6 replies, has 3 voices, and was last updated by  Jesse 2 years, 6 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #4081

    Jesse
    Participant

    I just made a simple font Class to work with Glyph Designer for Mac
    its pretty basic. It displays text based on the Angel Font format and it should work with any program that produces the angel code font format.
    the code does what I need for now so I am posting what I got so far.

    here it is in case it’s useful to anybody:

    [/crayon]

    You will need the “*.png” and “*.fnt” file produced by GLyphDesigner.

    #4093

    Mark Sibly
    Keymaster

    Nice!

    #4094

    Jesse
    Participant

    Thanks Mark!

    I think It works with any program that produces the angel code font format, as long as it’s one page atlas. it’s not set up to work with multiple pages as Glyph Designer only produces a single page. so I can’t test it other wise I would set it up for multiple pages.

    #4098

    AdamStrange
    Participant

    Excellent!

    I’ve done some tests with bmGlyph exported fnt and it works. I did need to make some modification to the code though.

    Here’s the code modified into a more compact class:

    it’s basically the same but with the font rendering moved about a bit and the class names renamed so they don’t clash with any mojo stuff

    P.S. I’ve also added the ability to scale in the x and y direction and corrected the height property

    #4101

    Jesse
    Participant

    Good job Adam! I didn’t think about putting the glyph class inside the font class but I like it.

    #4107

    AdamStrange
    Participant

    If you’re like I can add italics and some other bits n bobs?

    #4189

    Jesse
    Participant

    I just saw your last post. Yes, that would help.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.