From 013c0e6e16c4de278cd59baec67510e089074bd2 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Mon, 6 Jul 2020 21:40:24 +0200 Subject: [PATCH] gg: make FT private --- vlib/gg/text_rendering.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vlib/gg/text_rendering.v b/vlib/gg/text_rendering.v index b3d24a418c..fd27a9f083 100644 --- a/vlib/gg/text_rendering.v +++ b/vlib/gg/text_rendering.v @@ -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 }