mirror of
https://github.com/wez/wezterm.git
synced 2024-12-18 02:42:05 +03:00
refactor: split custom glyph code into its own file
This commit is contained in:
parent
0f5494db98
commit
76681c9879
3840
wezterm-gui/src/customglyph.rs
Normal file
3840
wezterm-gui/src/customglyph.rs
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -21,6 +21,7 @@ use wezterm_ssh::*;
|
|||||||
use wezterm_toast_notification::*;
|
use wezterm_toast_notification::*;
|
||||||
|
|
||||||
mod cache;
|
mod cache;
|
||||||
|
mod customglyph;
|
||||||
mod frontend;
|
mod frontend;
|
||||||
mod glyphcache;
|
mod glyphcache;
|
||||||
mod markdown;
|
mod markdown;
|
||||||
@ -443,7 +444,7 @@ pub fn run_ls_fonts(config: config::ConfigHandle, cmd: &LsFontsCommand) -> anyho
|
|||||||
let parsed = &handles[info.font_idx];
|
let parsed = &handles[info.font_idx];
|
||||||
let escaped = format!("{}", cluster.text.escape_unicode());
|
let escaped = format!("{}", cluster.text.escape_unicode());
|
||||||
if config.custom_block_glyphs {
|
if config.custom_block_glyphs {
|
||||||
if let Some(block) = glyphcache::BlockKey::from_str(&text) {
|
if let Some(block) = customglyph::BlockKey::from_str(&text) {
|
||||||
println!(
|
println!(
|
||||||
"{:4} {:12} drawn by wezterm: {:?}",
|
"{:4} {:12} drawn by wezterm: {:?}",
|
||||||
cluster.text, escaped, block
|
cluster.text, escaped, block
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
|
use crate::customglyph::BlockKey;
|
||||||
use crate::glium::texture::SrgbTexture2d;
|
use crate::glium::texture::SrgbTexture2d;
|
||||||
use crate::glyphcache::{BlockKey, CachedGlyph, GlyphCache};
|
use crate::glyphcache::{CachedGlyph, GlyphCache};
|
||||||
use crate::shapecache::*;
|
use crate::shapecache::*;
|
||||||
use crate::termwindow::{
|
use crate::termwindow::{
|
||||||
BorrowedShapeCacheKey, MappedQuads, RenderState, ScrollHit, ShapedInfo, TermWindowNotif,
|
BorrowedShapeCacheKey, MappedQuads, RenderState, ScrollHit, ShapedInfo, TermWindowNotif,
|
||||||
|
Loading…
Reference in New Issue
Block a user