This commit is contained in:
vfs committed 2026-01-29 21:35:54 +01:00
1 parent 20ba7b51a1
commit 729b8e9af1
3 files changed
+26 -52

No files matched your search

+7 -10
View File
@@ -1,10 +1,10 @@
const std = @import("std");
const rl = @import("raylib");
const kb = @import("kb");
const ft = @import("mach-freetype");
const hb = @import("mach-harfbuzz");
const rp = @import("stb_rect_pack");
const ztracy = @import("ztracy");
const std = @import("std");
const rl = @import("raylib");
const kb = @import("kb");
const ft = @import("mach-freetype");
const hb = @import("mach-harfbuzz");
const rp = @import("stb_rect_pack");
const ztracy = @import("ztracy");
pub var ft_lib : ft.Library = undefined;
pub var shader : rl.Shader = undefined;
@@ -286,9 +286,6 @@ pub const Font = struct {
const dpi_offset_y = offset_y / rl.getWindowScaleDPI().y;
if (self.glyphs.getPtr(RunGlyph.Id)) |glyph| {
if (RunGlyph.OffsetX != 0) {
std.log.info("font bearing ({}, {}), kb offset ({}, {})", .{glyph.bearing_x, glyph.bearing_y, RunGlyph.OffsetX, RunGlyph.OffsetX});
}
var v0 = rl.Vector2.zero();
var v1 = rl.Vector2.zero();
+3 -2
View File
@@ -3,8 +3,9 @@ const zm = @import("zmath");
const znet = @import("znet");
const rl = @import("raylib");
const bufzilla = @import("bufzilla");
const ft = @import("mach-freetype");
const ft = @import("mach-freetype");
const ztracy = @import("ztracy");
const kb = @import("kb");
const shared = @import("shared");
@@ -49,7 +50,7 @@ pub fn main() !void {
try znet.init();
defer znet.deinit();
rl.setConfigFlags(.{ .window_highdpi = true, .vsync_hint = true });
// rl.setConfigFlags(.{ .window_highdpi = true, .vsync_hint = true });
rl.initWindow(screen_width, screen_height, "zzz");
defer rl.closeWindow();