![]() Adds a Fonts type the render interface. Here's an example of how you could use this in `gui.zig`: ```zig const fonts = render.Fonts.init(); defer fonts.deinit(); const count = fonts.count(); std.log.info("{} fonts", .{count}); for (0..count) |font_index| { const name = fonts.getName(font_index); std.log.info("font {} '{}'", .{ font_index, std.unicode.fmtUtf16Le(name.slice()) }); } ``` |
||
---|---|---|
.. | ||
builtin.hlsl | ||
d3d11.zig | ||
dwrite.zig | ||
DwriteRenderer.zig | ||
flow.ico | ||
flow.manifest | ||
flow.rc | ||
FontFace.zig | ||
GlyphIndexCache.zig | ||
gui.zig | ||
ResourceNames.h | ||
win32ext.zig | ||
windowmsg.zig | ||
xterm.zig | ||
xy.zig |