-
Notifications
You must be signed in to change notification settings - Fork 5
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
Use fontations for shape planning #8
Conversation
Replaces the ttf-parser code for script, langsys and feature lookup. GSUB/GPOS is now fully fontations.
.flatten() | ||
} | ||
|
||
fn script_index(&self, tag: hb_tag_t) -> Option<u16> { |
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.
The non-trivial methods (e.g. the ones that do more than things like feature_list or feature_variations) warrant comment, particularly wrt what they are meant to be used for. Imagine the reader is relatively new to both Rust and shaping.
} | ||
|
||
impl crate::hb::ot_layout::LayoutTableExt for LayoutTable<'_> { | ||
// hb_ot_layout_table_select_script |
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.
actually link to the hb fns here and below
None | ||
} | ||
} | ||
|
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.
We've added lots of code that seems plausible to unit test and 0 unit tests. Seems sus.
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.
LGTM. Would like to see unit tests or an issue to add the in future.
Filed issue #13 to describe the process so we can get these merged before they go stale. |
Replaces the ttf-parser code for script, langsys and feature lookup.
GSUB/GPOS is now fully fontations.