mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-26 23:08:25 +00:00
address many fontmem todos
This commit is contained in:
@@ -1363,21 +1363,6 @@ fn prepKittyGraphics(
|
||||
|
||||
/// Update the configuration.
|
||||
pub fn changeConfig(self: *Metal, config: *DerivedConfig) !void {
|
||||
// On configuration change we always reset our font group. There
|
||||
// are a variety of configurations that can change font settings
|
||||
// so to be safe we just always reset it. This has a performance hit
|
||||
// when its not necessary but config reloading shouldn't be so
|
||||
// common to cause a problem.
|
||||
//
|
||||
// TODO(fontmem): we no longer do this. the surface should handle
|
||||
// font changes, create a new grid for us, and send it via message
|
||||
// passing or something.
|
||||
//
|
||||
// self.font_group.reset();
|
||||
// self.font_group.group.styles = config.font_styles;
|
||||
// self.font_group.atlas_greyscale.clear();
|
||||
// self.font_group.atlas_color.clear();
|
||||
|
||||
// We always redo the font shaper in case font features changed. We
|
||||
// could check to see if there was an actual config change but this is
|
||||
// easier and rare enough to not cause performance issues.
|
||||
|
||||
@@ -1530,18 +1530,6 @@ fn gridSize(self: *const OpenGL, screen_size: renderer.ScreenSize) renderer.Grid
|
||||
|
||||
/// Update the configuration.
|
||||
pub fn changeConfig(self: *OpenGL, config: *DerivedConfig) !void {
|
||||
// On configuration change we always reset our font group. There
|
||||
// are a variety of configurations that can change font settings
|
||||
// so to be safe we just always reset it. This has a performance hit
|
||||
// when its not necessary but config reloading shouldn't be so
|
||||
// common to cause a problem.
|
||||
//
|
||||
// TODO(fontmem): see Metal
|
||||
// self.font_group.reset();
|
||||
// self.font_group.group.styles = config.font_styles;
|
||||
// self.font_group.atlas_greyscale.clear();
|
||||
// self.font_group.atlas_color.clear();
|
||||
|
||||
// We always redo the font shaper in case font features changed. We
|
||||
// could check to see if there was an actual config change but this is
|
||||
// easier and rare enough to not cause performance issues.
|
||||
|
||||
Reference in New Issue
Block a user