diff --git a/src/font/Collection.zig b/src/font/Collection.zig index fbc23f007..842867930 100644 --- a/src/font/Collection.zig +++ b/src/font/Collection.zig @@ -300,7 +300,7 @@ pub fn completeStyles(self: *Collection, alloc: Allocator) CompleteError!void { } else |_| {} // If synthesizing italic failed, then we try to synthesize - // boldon whatever italic font we have. + // bold on whatever italic font we have. } // Nested alias isn't allowed so we need to unwrap the italic entry. @@ -328,7 +328,7 @@ pub fn completeStyles(self: *Collection, alloc: Allocator) CompleteError!void { } } -// Create an synthetic italic font face from the given entry and return it. +// Create a synthetic bold font face from the given entry and return it. fn syntheticBold(self: *Collection, entry: *Entry) !Face { // Not all font backends support synthetic bold. if (comptime !@hasDecl(Face, "syntheticBold")) return error.SyntheticBoldUnavailable; @@ -348,7 +348,7 @@ fn syntheticBold(self: *Collection, entry: *Entry) !Face { return face; } -// Create an synthetic italic font face from the given entry and return it. +// Create a synthetic italic font face from the given entry and return it. fn syntheticItalic(self: *Collection, entry: *Entry) !Face { // Not all font backends support synthetic italicization. if (comptime !@hasDecl(Face, "syntheticItalic")) return error.SyntheticItalicUnavailable; diff --git a/src/font/face/coretext.zig b/src/font/face/coretext.zig index 835994542..202230d5d 100644 --- a/src/font/face/coretext.zig +++ b/src/font/face/coretext.zig @@ -187,7 +187,7 @@ pub const Face = struct { errdefer ct_font.release(); var face = try initFont(ct_font, opts); - // TO determine our synthetic bold line width we get a multiplier + // To determine our synthetic bold line width we get a multiplier // from the font size in points. This is a heuristic that is based // on the fact that a line width of 1 looks good to me at 12 points // and we want to scale that up roughly linearly with the font size.