1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 23:21:08 +03:00

refactor: split custom glyph code into its own file

This commit is contained in:
Wez Furlong 2021-08-01 22:06:04 -07:00
parent 0f5494db98
commit 76681c9879
4 changed files with 3849 additions and 3840 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -21,6 +21,7 @@ use wezterm_ssh::*;
use wezterm_toast_notification::*;
mod cache;
mod customglyph;
mod frontend;
mod glyphcache;
mod markdown;
@ -443,7 +444,7 @@ pub fn run_ls_fonts(config: config::ConfigHandle, cmd: &LsFontsCommand) -> anyho
let parsed = &handles[info.font_idx];
let escaped = format!("{}", cluster.text.escape_unicode());
if config.custom_block_glyphs {
if let Some(block) = glyphcache::BlockKey::from_str(&text) {
if let Some(block) = customglyph::BlockKey::from_str(&text) {
println!(
"{:4} {:12} drawn by wezterm: {:?}",
cluster.text, escaped, block

View File

@ -1,5 +1,6 @@
use crate::customglyph::BlockKey;
use crate::glium::texture::SrgbTexture2d;
use crate::glyphcache::{BlockKey, CachedGlyph, GlyphCache};
use crate::glyphcache::{CachedGlyph, GlyphCache};
use crate::shapecache::*;
use crate::termwindow::{
BorrowedShapeCacheKey, MappedQuads, RenderState, ScrollHit, ShapedInfo, TermWindowNotif,