Skip to content

xoffset set to minus padding value for all letters #3994

@przwr

Description

@przwr

I'm using Hiero to create Distant Field fonts for Java.
When I create the font all the values of xoffset are -8 when I set padding 8.

Issue details

I loading from File. The problem is for all files I've tried.
The problem occurs on Java version. For FreeType version it's working well.

I creating Distant Fields, but I think problem occurs for any Java version settings. I can test it.

I tried to debug it. The Glyphs are created ok when switching to FreeType, but they're NOT reloaded/creted when switching to Java and change somewhere along the way. Cause later when saving to file values in Glyphs are all the same.

I also tried using latest nightly but same problem occurs.

Reproduction steps/code

Load font from .ttf file. Choose Java, add Distant Fileds, delete Color. Set up padding. Saving to BMP.

Version of LibGDX and/or relevant dependencies

I use newest runnable-hiero.jar v5

For now I'm using two .fnt files to load one font - one for xoffsets and one for all other data.

Please select the affected platforms

  • Android
  • iOS
  • HTML/GWT
  • Windows
  • Linux
  • MacOS

Thank You for Your Tools :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions