font packing, artifacts, etc.

Jungle Ide Home Forums FontMachine FontMachine editor font packing, artifacts, etc.

This topic contains 5 replies, has 3 voices, and was last updated by  Ziggy 7 years, 11 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2580

    secondgear
    Participant

    I’d like to add my voice to this post on Monkey forums:
    http://www.monkeycoder.co.nz/Community/post.php?topic=1171&post=22700

    (1) An option to merge border and/or shadow with the face characters would be helpful.
    (2) I confirm the gradient corruption with some fonts (see the first image). It happens in some font sizes only.
    (3) fontmachine sometimes picks up the top of the shadow or border from a character located below in the packed font (see the second and third image). This usually happens on Android, especially on tablets. I attached the zipped font that was used in that app, but I saw this effect with at least one other font as well.

    Download font

    #3275

    Ziggy
    Keymaster
    Quote:
    An option to merge border and/or shadow with the face characters would be helpful.

    This is on the to-do list

    Quote:
    I confirm the gradient corruption with some fonts (see the first image). It happens in some font sizes only.

    Can you confirm this happens when the color balance is on zero?

    Quote:
    fontmachine sometimes picks up the top of the shadow or border from a character located below in the packed font (see the second and third image). This usually happens on Android, especially on tablets.

    It looks loke a rounding error in the image scaling. I’ll take a look. but does it only happen on android tablets? I do not own one, if you could provide an easy way to see this issues in action, I’ll happily fix anything. Maybe adding additional margin between glipths or shrinking the packed location by a pixel, but I’m not sure if this could cause some artifacts on face fonts being cut…

    #3279

    secondgear
    Participant
    Quote:
    Can you confirm this happens when the color balance is on zero?

    Yes, the color balance is at zero. You can download the ttf font in the attached zip and see for yourself. In some font sizes gradient works fine, in some it looks like the image above.

    Quote:
    It looks loke a rounding error in the image scaling. I’ll take a look. but does it only happen on android tablets? I do not own one, if you could provide an easy way to see this issues in action, I’ll happily fix anything.

    Yes, the image is scaled, so you’re probably right about the cause. I don’t know why I didn’t see it in Flash or HTML5. The images above are from an Android simulator, not from a physical device (although I can see this defect on a physical device as well). The simulator is just a standard WXGA skin of Android 3.2 target.

    #3285

    Ziggy
    Keymaster

    I’ll take a look to the gradient thing on the editor, and I think I’ll add a reduce 1 pix function to the bitmapfont, so it can be enabled on platforms that produce such artifacts when scaling contents. It should be very easy on texture-packed fonts.

    #3301

    FRedShift
    Participant

    Hi,
    Yes it could be very good if the editor could merge border and face of the font to have only 2 passes if you always have border on.

    #3302

    Ziggy
    Keymaster

    I plan on adding an additional “packing options” step in the renderer, so you can decide optimization level, layered, unlayered or semi-layered fonts (that last one will be when only the face and border are layered). But it’ll take time

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

You must be logged in to reply to this topic.