unified-font-object / ufoNormalizer

A tool that will normalize the XML and other data inside of a UFO.
Other
51 stars 19 forks source link

Changes in data types #54

Open schriftgestalt opened 5 years ago

schriftgestalt commented 5 years ago

When a lib contains a that has no actual floating point part, it is converted into an . I though whatever is in a lib should stay as it is.

example:

    <key>com.typemytype.robofont.b2.layerStrokeColor</key>
    <array>
        <real>0.5</real>
        <real>1.0</real>
        <real>0.0</real>
        <real>0.7</real>
    </array>

will become

        <key>com.typemytype.robofont.b2.layerStrokeColor</key>
        <array>
            <real>0.5</real>
            <integer>1</integer>
            <integer>0</integer>
            <real>0.7</real>
        </array>