pkg/freetype: remove unused API

This commit is contained in:
Mitchell Hashimoto
2022-10-16 21:03:17 -07:00
parent a39fe6baed
commit 15a57983a6
2 changed files with 0 additions and 24 deletions

View File

@ -1,23 +0,0 @@
const std = @import("std");
const c = @import("c.zig");
const freetype = @import("main.zig");
const errors = @import("errors.zig");
const Error = errors.Error;
const intToError = errors.intToError;
/// Convert a bitmap object with depth 1bpp, 2bpp, 4bpp, 8bpp or 32bpp to a
/// bitmap object with depth 8bpp, making the number of used bytes per line
/// (a.k.a. the pitch) a multiple of alignment.
pub fn bitmapConvert(
lib: freetype.Library,
source: *const c.FT_Bitmap,
target: *c.FT_Bitmap,
alignment: u32,
) Error!void {
try intToError(c.FT_Bitmap_Convert(
lib.handle,
source,
target,
alignment,
));
}

View File

@ -1,7 +1,6 @@
pub const c = @import("c.zig");
pub const testing = @import("test.zig");
pub const Library = @import("Library.zig");
pub usingnamespace @import("bitmap.zig");
pub usingnamespace @import("computations.zig");
pub usingnamespace @import("errors.zig");
pub usingnamespace @import("face.zig");