summaryrefslogtreecommitdiff
path: root/src/font/face.zig
diff options
context:
space:
mode:
authorMitchell Hashimoto <m@mitchellh.com>2025-03-24 13:38:35 -0700
committerMitchell Hashimoto <m@mitchellh.com>2025-03-26 12:32:27 -0700
commit4bcaf1f3b47becd47ed14cf9ec22e7c6edffd45c (patch)
treed6a305134e2cb291a36b8bb5d1018f4e38f6a066 /src/font/face.zig
parentbcff4e18f430e0e34412f631215f196c9e0c885b (diff)
wip: OpenGLv2opengl-test
Diffstat (limited to 'src/font/face.zig')
-rw-r--r--src/font/face.zig8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/font/face.zig b/src/font/face.zig
index 6355578db..31c6bb92b 100644
--- a/src/font/face.zig
+++ b/src/font/face.zig
@@ -39,6 +39,14 @@ pub const freetype_load_flags_default: FreetypeLoadFlags = if (FreetypeLoadFlags
pub const Options = struct {
size: DesiredSize,
freetype_load_flags: FreetypeLoadFlags = freetype_load_flags_default,
+
+ /// The options used for all tests by default. This sets a fixed
+ /// point with a fixed DPI across platforms.
+ pub const testDefault: Options = .{ .size = .{
+ .points = 12,
+ .xdpi = 96,
+ .ydpi = 96,
+ } };
};
/// The desired size for loading a font.