Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ufonormalizer: store modTimes and imageReferences in layerInfo's "lib"... #35

Merged
merged 1 commit into from Apr 21, 2016

Conversation

anthrotype
Copy link
Member

… and not in the top-level dict.

According to the UFO3 spec, the "layerinfo.plist" data is a dictionary containing a "color" definition and a "lib" sub-dictionary.
The ufonormalizer was confusing the top-level dictionary with the inner lib dictionary, and was overwriting the former with the content of the latter!
Instead, the "modTimes" and "imageReferences" keys must be read/written from/in the inner "lib" dict of layerinfo.plist file.

Later on, we shall also write tests for this, as well as for the whole normalizeGlyphsDirectory function.

…", not in top-level dict

http://www.unifiedfontobject.org/versions/ufo3/glyphs.html#layerinfo

According to the UFO3 spec, the layerinfo.plist data is a dictionary containing "color" definition and a "lib" sub-dictionary. The ufonormalizer was confusing the top-level dictionary with the lib dictionary, and overwriting the former with the content of the latter.
Instead, modTimes and imageReferences must be read/written from/in the inner "lib" dict of layerinfo.plist.

Later on, we should write tests for this, as well as the whole `normalizeGlyphsDirectory` function.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 94.948% when pulling a0b9d92 on daltonmaag:imagerefs-lib into b2c3eb4 on unified-font-object:master.

@typesupply typesupply merged commit f7d5355 into unified-font-object:master Apr 21, 2016
@anthrotype anthrotype deleted the imagerefs-lib branch April 21, 2016 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants