Skip to content

Commit

Permalink
Fix incorrect format value for CharacterVariantParams
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyr committed Dec 14, 2022
1 parent 02adbc4 commit cc5ae32
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion read-fonts/generated/generated_layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4399,7 +4399,7 @@ impl<'a> std::fmt::Debug for StylisticSetParams<'a> {
}

impl Format<u16> for CharacterVariantParamsMarker {
const FORMAT: u16 = 1;
const FORMAT: u16 = 0;
}

/// featureParams for ['cv01'-'cv99'](https://docs.microsoft.com/en-us/typography/opentype/spec/features_ae#cv01-cv99)
Expand Down
2 changes: 1 addition & 1 deletion resources/codegen_inputs/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ table StylisticSetParams {
/// featureParams for ['cv01'-'cv99'](https://docs.microsoft.com/en-us/typography/opentype/spec/features_ae#cv01-cv99)
table CharacterVariantParams {
/// Format number is set to 0.
#[format = 1]
#[format = 0]
format: u16,
/// The 'name' table name ID that specifies a string (or strings,
/// for multiple languages) for a user-interface label for this
Expand Down
2 changes: 1 addition & 1 deletion write-fonts/generated/generated_layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2972,7 +2972,7 @@ impl CharacterVariantParams {
impl FontWrite for CharacterVariantParams {
#[allow(clippy::unnecessary_cast)]
fn write_into(&self, writer: &mut TableWriter) {
(1 as u16).write_into(writer);
(0 as u16).write_into(writer);
self.feat_ui_label_name_id.write_into(writer);
self.feat_ui_tooltip_text_name_id.write_into(writer);
self.sample_text_name_id.write_into(writer);
Expand Down

0 comments on commit cc5ae32

Please # to comment.