mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
typos
This commit is contained in:
@ -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;
|
||||
|
@ -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.
|
||||
|
Reference in New Issue
Block a user