Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions face.zig
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,19 @@ pub const Face = struct {
));
}

/// Call FT_Request_Size to request the nominal size (in pixels).
pub fn setPixelSize(
self: Face,
pixel_width: u16,
pixel_height: u16,
) Error!void {
return intToError(c.FT_Set_Pixel_Sizes(
self.handle,
pixel_width,
pixel_height,
));
}

/// Select a bitmap strike. To be more precise, this function sets the
/// scaling factors of the active FT_Size object in a face so that bitmaps
/// from this particular strike are taken by FT_Load_Glyph and friends.
Expand Down