v/vlib/gg/text_rendering.v
2024-01-01 23:29:54 +02:00

29 lines
586 B
V

// Copyright (c) 2019-2024 Alexander Medvednikov. All rights reserved.
// Use of this source code is governed by an MIT license that can be found in the LICENSE file.
module gg
import gx
struct FTConfig {
font_path string
custom_bold_font_path string
scale f32 = 1.0
font_size int
bytes_normal []u8
bytes_bold []u8
bytes_mono []u8
bytes_italic []u8
}
struct StringToRender {
x int
y int
text string
cfg gx.TextCfg
}
@[if debug_font ?]
fn debug_font_println(s string) {
println(s)
}