-
Notifications
You must be signed in to change notification settings - Fork 15
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
Start to parse Fontra components #701
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few rust idiom/api notes inline, but nothing blocking.
@@ -78,7 +180,7 @@ pub(crate) struct FontraSource { | |||
#[serde(rename = "layerName")] | |||
pub(crate) layer_name: String, | |||
#[serde(default)] | |||
pub(crate) location: HashMap<Tag, f64>, | |||
pub(crate) location: HashMap<String, f64>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if this String
has any specific meaning (is it supposed to be a tag, or a human readable name, or what?) a comment would be useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it'll help if I newtype some of the name fields that are used as identifiers. HashMap<AxisName, f64>
, much like the <Tag, f64>
version. Aside: I wish it was the tag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will do this in a followon
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already had some comments attached to this so I dropped the ones Colin already mentioned.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not yet turned into IR
Components require a better version of string to filename so that is added, fixes #688.