Commit graph

5 commits

Author SHA1 Message Date
f29eac4f6f
fix: update win32 gui build for zig-0.15 2025-10-01 17:00:10 +02:00
Jonathan Marler
5cc6724a07 win32 gui: center double-wide characters 2025-09-23 22:14:29 +02:00
d503f3c197
fix: windows build with zig 0.14.0-dev.3039 2025-02-04 23:32:40 +01:00
Jonathan Marler
3e953981fe win32 gui: add Fonts type to get list of available fonts
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()) });
    }
```
2025-01-17 16:19:19 +01:00
Jonathan Marler
5b83619f7a win32 gui: replace D2D renderer with D3d11 shader 2025-01-13 05:06:57 -07:00