From 24cd57155bfd501dde891882be701d6c3b7d7bd0 Mon Sep 17 00:00:00 2001 From: Giuliano Bellini s294739 Date: Tue, 28 Feb 2023 00:09:23 +0100 Subject: [PATCH] fixed build and added subset characters --- .gitignore | 7 - Cargo.toml | 2 +- resources/fonts/full/subset_characters.txt | 313 +++++++++++++++++++++ src/utility/style_constants.rs | 2 +- 4 files changed, 315 insertions(+), 9 deletions(-) create mode 100644 resources/fonts/full/subset_characters.txt diff --git a/.gitignore b/.gitignore index ee2ca212..afaac1ff 100644 --- a/.gitignore +++ b/.gitignore @@ -213,13 +213,6 @@ $RECYCLE.BIN/ ##################################################################### -# report file generated by the application and country database -*.txt -*.csv - -#folder with reports -/sniffnet_* - #folder used for Windows installer /wix diff --git a/Cargo.toml b/Cargo.toml index f63a1069..792a3fdc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ repository = "https://github.com/GyulyVGC/sniffnet" license = "MIT OR Apache-2.0" keywords = ["filter", "network", "packet", "sniffer", "gui"] categories = ["visualization", "gui", "network-programming"] -include = ["src/**/*", "LICENSE-*", "README.md", "CHANGELOG.md", "resources/countries_flags/**/*", "resources/DB/GeoLite2-Country.mmdb", "resources/palettes/*", "resources/fonts/*", "resources/sounds/*"] +include = ["src/**/*", "LICENSE-*", "README.md", "CHANGELOG.md", "resources/countries_flags/**/*", "resources/DB/GeoLite2-Country.mmdb", "resources/palettes/*", "resources/fonts/subset/*", "resources/sounds/*"] [package.metadata.bundle] diff --git a/resources/fonts/full/subset_characters.txt b/resources/fonts/full/subset_characters.txt new file mode 100644 index 00000000..d704ecdf --- /dev/null +++ b/resources/fonts/full/subset_characters.txt @@ -0,0 +1,313 @@ + +! +" +# +$ +% +& +' +( +) +* ++ +, +- +. +/ +0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +: +; +< += +> +? +@ +A +B +C +D +E +F +G +H +I +J +K +L +M +N +O +P +Q +R +S +T +U +V +W +X +Y +Z +[ +\ +] +^ +_ +` +a +b +c +d +e +f +g +h +i +j +k +l +m +n +o +p +q +r +s +t +u +v +w +x +y +z +{ +| +} +¡ +¿ +Ê +Ü +à +á +ä +ç +è +é +ê +ì +í +ñ +ó +ô +ö +ù +ú +û +ü +ą +ć +ę +ł +ń +ś +ź +ż +一 +中 +主 +义 +了 +互 +些 +交 +仅 +从 +他 +以 +们 +任 +会 +传 +但 +体 +何 +使 +侧 +信 +值 +入 +其 +内 +出 +击 +分 +到 +前 +功 +动 +包 +协 +占 +即 +发 +可 +右 +后 +吗 +含 +启 +告 +哦 +喜 +器 +图 +在 +地 +址 +士 +夹 +如 +始 +字 +它 +完 +定 +家 +将 +小 +尝 +层 +已 +并 +应 +开 +当 +待 +志 +总 +您 +情 +想 +成 +我 +所 +打 +报 +择 +指 +按 +换 +据 +接 +控 +收 +数 +整 +文 +新 +无 +日 +时 +星 +是 +显 +暂 +暗 +最 +有 +未 +本 +条 +果 +标 +梦 +概 +欢 +正 +此 +每 +没 +洋 +活 +流 +浅 +测 +海 +清 +滤 +潜 +点 +版 +率 +生 +用 +的 +皆 +监 +目 +知 +确 +示 +秒 +空 +站 +等 +简 +类 +络 +网 +置 +联 +自 +色 +节 +藏 +要 +览 +言 +计 +议 +设 +试 +详 +语 +误 +请 +贴 +超 +输 +达 +过 +近 +还 +这 +连 +退 +适 +选 +通 +速 +配 +里 +量 +错 +间 +阈 +除 +隐 +需 +面 +音 +页 +题 +黑 +, diff --git a/src/utility/style_constants.rs b/src/utility/style_constants.rs index c908b039..579ffd8d 100644 --- a/src/utility/style_constants.rs +++ b/src/utility/style_constants.rs @@ -135,7 +135,7 @@ pub const LXGW_MONO_LITE_BOLD: Font = Font::External { name: "lxgw_lite_bold", - bytes: include_bytes!("../../resources/fonts/subset/LXGWWenKaiMonoLite-Bold.ttf"), + bytes: include_bytes!("../../resources/fonts/subset/LXGWWenKaiMonoLite-Bold.subset.ttf"), }; pub fn get_font(style: StyleType) -> Font {