gg: make FT private

pull/5711/head^2
Alexander Medvednikov 2020-07-06 21:40:24 +02:00
parent 48f1f814d2
commit 013c0e6e16
1 changed files with 3 additions and 3 deletions

View File

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