fix point size type

This commit is contained in:
Qwerasd
2024-05-08 15:00:28 -04:00
parent a9daba6d6d
commit fa45c18a6a
2 changed files with 2 additions and 2 deletions

View File

@ -371,7 +371,7 @@ pub const Wasm = struct {
}
}
export fn deferred_face_load(self: *DeferredFace, pts: u16) void {
export fn deferred_face_load(self: *DeferredFace, pts: f32) void {
self.load(.{}, .{ .points = pts }) catch |err| {
log.warn("error loading deferred face err={}", .{err});
return;

View File

@ -497,7 +497,7 @@ pub const Wasm = struct {
return face_new_(ptr, len, pts, p) catch null;
}
fn face_new_(ptr: [*]const u8, len: usize, pts: u16, presentation: u16) !*Face {
fn face_new_(ptr: [*]const u8, len: usize, pts: f32, presentation: u16) !*Face {
var face = try Face.initNamed(
alloc,
ptr[0..len],