font directory parameter

This commit is contained in:
Vicente Ferrari Smith 2025-02-28 18:19:30 +01:00
parent bc4d8bb0e1
commit abca11998f

View File

@ -284,13 +284,13 @@ free_old_plots :: () {
}
}
init :: (_window: Window_Type, _win_width: s32, _win_height: s32, _mouse_wheel_zoom : bool) {
init :: (_window: Window_Type, _win_width: s32, _win_height: s32, _mouse_wheel_zoom : bool, font_directory: string, font_name: string) {
window = _window;
win_width = _win_width;
win_height = _win_height;
mouse_wheel_zoom = _mouse_wheel_zoom;
JetBrainsMonoRegular = Simp.get_font_at_size("fonts", "JetBrainsMono-Regular.ttf", 14);
JetBrainsMonoRegular = Simp.get_font_at_size(font_directory, font_name, 14);
assert(JetBrainsMonoRegular != null);
data_shader = make_shader(data_vertex_shader_text, data_fragment_shader_text);