1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

gg: make FT private

This commit is contained in:
Alexander Medvednikov 2020-07-06 21:40:24 +02:00
parent 48f1f814d2
commit 013c0e6e16

View File

@ -10,7 +10,7 @@ const (
default_font_size = 20
)
pub struct FT {
struct FT {
pub:
fons &C.FONScontext
@ -18,13 +18,13 @@ pub:
scale f32 = 1.0
}
pub struct FTConfig {
struct FTConfig {
font_path string
scale f32 = 1.0
font_size int
}
fn new_ft(c Config) ?&FT{
fn new_ft(c FTConfig) ?&FT{
if c.font_path == '' {
// Load default font
}