Skip to content

Commit 227d12e

Browse files
authored
[chore] Fix some typos (#2005)
1 parent d876963 commit 227d12e

7 files changed

Lines changed: 16 additions & 14 deletions

File tree

.typos.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ ND = "ND"
4040

4141
# Match Inside a Word - Case Insensitive
4242
[default.extend-words]
43+
# 'bimap' as in bidirectional map (IncBiMap), not 'bitmap'
44+
bimap = "bimap"
4345
loca = "loca"
4446
wdth = "wdth"
4547
ot = "ot"

font-types/src/tag.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl Tag {
9999

100100
/// Check that the tag conforms with the spec.
101101
///
102-
/// This is intended for use during things like santization or lint passes
102+
/// This is intended for use during things like sanitization or lint passes
103103
/// on existing fonts; if you are creating a new tag, you should prefer
104104
/// [`Tag::new_checked`].
105105
///

read-fonts/src/read.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub trait Format<T> {
6161

6262
/// A trait for tables that contain offsets to subtables of heterogeneous types.
6363
///
64-
/// The type of the subtable is determiend by an inline discriminant; this trait
64+
/// The type of the subtable is determined by an inline discriminant; this trait
6565
/// reads that discriminant.
6666
pub trait Discriminant {
6767
/// Read the discriminant for this table.

skera/src/layout.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1754,14 +1754,14 @@ impl<'a> SubsetTable<'a> for FeatureTableSubstitutionRecord {
17541754
return Err(SerializeErrorFlags::SERIALIZE_ERROR_EMPTY);
17551755
}
17561756
let (feature_index_map, c, font_data) = args;
1757-
let Some(new_feature_indx) = feature_index_map.get(&self.feature_index()) else {
1757+
let Some(new_feature_index) = feature_index_map.get(&self.feature_index()) else {
17581758
return Err(SerializeErrorFlags::SERIALIZE_ERROR_EMPTY);
17591759
};
17601760

17611761
let alternate_feature = self
17621762
.alternate_feature(font_data)
17631763
.map_err(|_| s.set_err(SerializeErrorFlags::SERIALIZE_ERROR_READ_ERROR))?;
1764-
s.embed(*new_feature_indx)?;
1764+
s.embed(*new_feature_index)?;
17651765

17661766
let feature_offset_pos = s.embed(0_u32)?;
17671767
Offset32::serialize_subset(&alternate_feature, s, plan, c, feature_offset_pos)

skera/src/serialize.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,7 @@ mod test {
13521352
assert_eq!(s.packed_map.hash_table.len(), 1);
13531353
// share=true, duplicate object won't be added into packed vector
13541354
assert_eq!(s.packed.len(), 1);
1355-
//check to make sure head is rewinded
1355+
//check to make sure head is rewound
13561356
assert_eq!(s.head, 3);
13571357
assert_eq!(s.tail, 97);
13581358

@@ -1365,7 +1365,7 @@ mod test {
13651365
assert_eq!(s.pop_pack(true), Some(1));
13661366
assert_eq!(s.packed_map.hash_table.len(), 2);
13671367
assert_eq!(s.packed.len(), 2);
1368-
//check to make sure head is rewinded
1368+
//check to make sure head is rewound
13691369
assert_eq!(s.head, 3);
13701370
//check that tail is updated
13711371
assert_eq!(s.tail, 95);
@@ -1383,7 +1383,7 @@ mod test {
13831383
assert_eq!(s.packed_map.hash_table.len(), 2);
13841384
// share=true, duplicate object will be added into the packed vector
13851385
assert_eq!(s.packed.len(), 3);
1386-
//check to make sure head is rewinded
1386+
//check to make sure head is rewound
13871387
assert_eq!(s.head, 3);
13881388
assert_eq!(s.tail, 92);
13891389
}
@@ -1411,7 +1411,7 @@ mod test {
14111411
assert_eq!(s.pop_pack(true), Some(3));
14121412
assert_eq!(s.packed_map.hash_table.len(), 3);
14131413
assert_eq!(s.packed.len(), 4);
1414-
//check to make sure head is rewinded
1414+
//check to make sure head is rewound
14151415
assert_eq!(s.head, 3);
14161416
assert_eq!(s.tail, 89);
14171417

@@ -1433,7 +1433,7 @@ mod test {
14331433
objidx: 1,
14341434
};
14351435
obj.virtual_links.push(link);
1436-
// check that virtual links doesn't affect euqality
1436+
// check that virtual links doesn't affect equality
14371437
assert_eq!(s.pop_pack(true), Some(3));
14381438
assert_eq!(s.packed_map.hash_table.len(), 3);
14391439
assert_eq!(s.packed.len(), 4);
@@ -1471,7 +1471,7 @@ mod test {
14711471
assert_eq!(s.pop_pack(true), Some(4));
14721472
assert_eq!(s.packed_map.hash_table.len(), 4);
14731473
assert_eq!(s.packed.len(), 5);
1474-
//check to make sure head is rewinded
1474+
//check to make sure head is rewound
14751475
assert_eq!(s.head, 3);
14761476
assert_eq!(s.tail, 86);
14771477

@@ -1498,7 +1498,7 @@ mod test {
14981498
// obj is added into both hash_table and packed vector
14991499
assert_eq!(s.packed_map.hash_table.len(), 5);
15001500
assert_eq!(s.packed.len(), 6);
1501-
//check to make sure head is rewinded
1501+
//check to make sure head is rewound
15021502
assert_eq!(s.head, 3);
15031503
assert_eq!(s.tail, 83);
15041504
}
@@ -1531,7 +1531,7 @@ mod test {
15311531
assert_eq!(s.head, 6);
15321532
assert_eq!(s.tail, 97);
15331533
s.pop_discard();
1534-
//check that head is rewinded
1534+
//check that head is rewound
15351535
assert_eq!(s.head, 3);
15361536
assert_eq!(s.tail, 97);
15371537
//discarded obj is not added into packed vector

write-fonts/src/tables/glyf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub enum Glyph {
4646
///
4747
/// This should be the minimum rectangle which fully encloses the glyph outline;
4848
/// importantly this can only be determined by computing the individual Bezier
49-
/// segments, and cannot be determiend from points alone.
49+
/// segments, and cannot be determined from points alone.
5050
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
5151
pub struct Bbox {
5252
pub x_min: i16,

write-fonts/src/tables/gvar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ mod tests {
905905
#[test]
906906
fn compute_shared_points_is_deterministic() {
907907
// The deltas for glyph "etatonos.sc.ss06" in GoogleSans-VF are such that the
908-
// TupleVariationStore's shared set of point numbers could potentionally be
908+
// TupleVariationStore's shared set of point numbers could potentially be
909909
// computed as either PackedPointNumbers::All or PackedPointNumbers::Some([1, 3])
910910
// without affecting the size (or correctness) of the serialized data.
911911
// However we want to ensure that the result is deterministic, and doesn't

0 commit comments

Comments
 (0)