diff options
| author | Mitchell Hashimoto <m@mitchellh.com> | 2024-08-23 20:34:19 -0700 |
|---|---|---|
| committer | Mitchell Hashimoto <m@mitchellh.com> | 2024-08-23 20:34:37 -0700 |
| commit | 74291793db0437d2c5d201f7f38d15dfcaf0ba83 (patch) | |
| tree | 60b3210766a8b54afffbddd56a47890666051dd1 /src/font/Collection.zig | |
| parent | 14b04439d08ce4c26676ca6d6d7f55d115c60aa5 (diff) | |
font: rename auto-italicize to synthetic italic
Diffstat (limited to 'src/font/Collection.zig')
| -rw-r--r-- | src/font/Collection.zig | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/font/Collection.zig b/src/font/Collection.zig index 2a8368053..256c6b73e 100644 --- a/src/font/Collection.zig +++ b/src/font/Collection.zig @@ -306,19 +306,19 @@ pub fn completeStyles(self: *Collection, alloc: Allocator) CompleteError!void { // Create an synthetic italic font face from the given entry and return it. fn syntheticItalic(self: *Collection, entry: *Entry) !Face { - // Not all font backends support auto-italicization. - if (comptime !@hasDecl(Face, "italicize")) return error.SyntheticItalicUnavailable; + // Not all font backends support synthetic italicization. + if (comptime !@hasDecl(Face, "syntheticItalic")) return error.SyntheticItalicUnavailable; - // We require loading options to auto-italicize. + // We require loading options to create a synthetic italic face. const opts = self.load_options orelse return error.DeferredLoadingUnavailable; // Try to italicize it. const regular = try self.getFaceFromEntry(entry); - const face = try regular.italicize(opts.faceOptions()); + const face = try regular.syntheticItalic(opts.faceOptions()); var buf: [256]u8 = undefined; if (face.name(&buf)) |name| { - log.info("font auto-italicized: {s}", .{name}); + log.info("font synthetic italic created family={s}", .{name}); } else |_| {} return face; |
