mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
pkg/freetype: finish APIs we need
This commit is contained in:
8
pkg/freetype/computations.zig
Normal file
8
pkg/freetype/computations.zig
Normal file
@ -0,0 +1,8 @@
|
||||
const std = @import("std");
|
||||
const c = @import("c.zig");
|
||||
|
||||
/// Compute (a*b)/0x10000 with maximum accuracy. Its main use is to multiply
|
||||
/// a given value by a 16.16 fixed-point factor.
|
||||
pub fn mulFix(a: i32, b: i32) i32 {
|
||||
return @intCast(i32, c.FT_MulFix(a, b));
|
||||
}
|
@ -1,6 +1,7 @@
|
||||
pub const c = @import("c.zig");
|
||||
pub const testing = @import("test.zig");
|
||||
pub const Library = @import("Library.zig");
|
||||
pub usingnamespace @import("computations.zig");
|
||||
pub usingnamespace @import("errors.zig");
|
||||
pub usingnamespace @import("face.zig");
|
||||
|
||||
|
Reference in New Issue
Block a user