@@ -140,4 +140,54 @@ internal static LinuxRuntimeFontInitialization InitializeRuntimeFont(
140140 out _ ,
141141 out defaultFontStyle ) ;
142142 }
143+
144+ internal static void ReleaseRuntimeFont (
145+ ref lv_font_t * fallbackFont ,
146+ ref SixLaborsFontManager ? fontManager ,
147+ ref lv_style_t * defaultFontStyle )
148+ {
149+ LvglRuntimeFontRegistry . ClearActiveTextFont ( ) ;
150+ fontManager ? . Dispose ( ) ;
151+ fontManager = null ;
152+ fallbackFont = null ;
153+ defaultFontStyle = null ;
154+ }
155+
156+ internal static void ReleaseRuntimeFontDiagnostics (
157+ ref lv_font_t * fallbackFont ,
158+ ref SixLaborsFontManager ? fontManager ,
159+ ref string ? fontDiagnosticSummary ,
160+ ref string ? glyphDiagnosticSummary ,
161+ ref lv_style_t * defaultFontStyle )
162+ {
163+ ReleaseRuntimeFont ( ref fallbackFont , ref fontManager , ref defaultFontStyle ) ;
164+ fontDiagnosticSummary = null ;
165+ glyphDiagnosticSummary = null ;
166+ }
167+
168+ internal static void ReleaseRuntimeFontPathAndDiagnostic (
169+ ref lv_font_t * fallbackFont ,
170+ ref SixLaborsFontManager ? fontManager ,
171+ ref string ? resolvedSystemFontPath ,
172+ ref string ? fontDiagnosticSummary ,
173+ ref lv_style_t * defaultFontStyle )
174+ {
175+ ReleaseRuntimeFont ( ref fallbackFont , ref fontManager , ref defaultFontStyle ) ;
176+ resolvedSystemFontPath = null ;
177+ fontDiagnosticSummary = null ;
178+ }
179+
180+ internal static void ReleaseRuntimeFontFull (
181+ ref lv_font_t * fallbackFont ,
182+ ref SixLaborsFontManager ? fontManager ,
183+ ref string ? resolvedSystemFontPath ,
184+ ref string ? fontDiagnosticSummary ,
185+ ref string ? glyphDiagnosticSummary ,
186+ ref lv_style_t * defaultFontStyle )
187+ {
188+ ReleaseRuntimeFont ( ref fallbackFont , ref fontManager , ref defaultFontStyle ) ;
189+ resolvedSystemFontPath = null ;
190+ fontDiagnosticSummary = null ;
191+ glyphDiagnosticSummary = null ;
192+ }
143193}
0 commit comments