Skip to content

Commit

Permalink
Update codegen README to mention new multiply_add function.
Browse files Browse the repository at this point in the history
  • Loading branch information
garretrieger committed Oct 10, 2024
1 parent 2339f14 commit f12a117
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions font-codegen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ The following annotations are supported on top-level objects:
in a table), the name of a field (preceded by the `$` token) or a literal
integer. The less-simple form begins with a function identifier, and then one
or more arguments, comma separated. Currently accepted function identifiers
are 'add', 'subtract', 'add_multiply', 'half', 'map_delta_size', and
'delta_value_count'.
are 'add', 'subtract', 'add_multiply', 'multiply_add', 'half', 'map_delta_size',
and 'delta_value_count'.
- `#[compile(arg)]`: If present, this field will not be included in the compile
type. The value may be either the literal 'skip', or an expression that
evaluates to the field's type: the skip case is only expected in cases where
Expand Down
2 changes: 1 addition & 1 deletion font-codegen/src/parsing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ pub(crate) enum CountTransform {
Add,
/// requires exactly three args, defined as ($arg1 + $arg2) * $arg3
AddMul,
/// requires exactly three args, defined as ($arg1 * $arg2) + 1
/// requires exactly three args, defined as ($arg1 * $arg2) + $arg3
MulAdd,
/// requires exactly one arg. defined as $arg1 / 2
Half,
Expand Down
1 change: 1 addition & 0 deletions read-fonts/src/tables/ift.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ impl<'a> Iterator for GidToEntryIter<'a> {
}

impl<'a> GlyphPatches<'a> {
/// Returns an iterator over the per glyph data for the table with the given index.
pub fn glyph_data_for_table(
&'a self,
table_index: u32,
Expand Down

0 comments on commit f12a117

Please sign in to comment.