Something went wrong. Try again.
Draws glyphs from zig-font onto z2d surfaces from positioned glyph runs, with fontconfig-based font loading and fallback.
Something went wrong. Try again.
974 B · 31 lines
Zig
at main
1234567891011121314151617181920212223242526272829303132// SPDX-FileCopyrightText: © 2026 Jeffrey C. Ollie <jeff@ocjtech.us>// SPDX-License-Identifier: MIT
//! Finds fonts the way fontconfig does, with zig-font-config, and loads//! them into faces `font_renderer` can draw.//!//! ```zig//! const config = try fc.Config.load(gpa, io, .fromMap(environ_map), .{});//! defer config.deinit();//! try config.scan(io);//!//! var loader: font_loader.Loader = .init(gpa, io, config);//! defer loader.deinit();//! var list = try loader.resolveName("sans-serif:bold");//! defer list.deinit();//! const face = (try list.faceFor('A')).?;//! ```//!//! This module does I/O, through the `Io` it is given: it reads font files.//! The renderer itself does none.
pub const Loader = @import("Loader.zig");pub const FontList = @import("FontList.zig");pub const fallback_layout = @import("fallback_layout.zig");pub const Face = @import("font_renderer").Face;
test { _ = Loader; _ = FontList; _ = fallback_layout;}