freetype: rename newX functions to createX
This commit is contained in:
parent
dc832997e4
commit
8184ce82f7
4 changed files with 18 additions and 18 deletions
|
|
@ -65,7 +65,7 @@ pub fn writer(label: *ResizableLabel, app: *App, position: Vec4, text_color: Vec
|
|||
|
||||
pub fn init(self: *ResizableLabel, lib: ft.Library, font_path: []const u8, face_index: i32, allocator: std.mem.Allocator, white_texture: UVData) !void {
|
||||
self.* = ResizableLabel{
|
||||
.face = try lib.newFace(font_path, face_index),
|
||||
.face = try lib.createFace(font_path, face_index),
|
||||
.char_map = std.AutoHashMap(u21, CharVertices).init(allocator),
|
||||
.allocator = allocator,
|
||||
.tessellator = undefined,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue