Rename new feature to "unicode_support"
Also some setup for pending feature.
This commit is contained in:
parent
07d99005c0
commit
fa0d81577b
6 changed files with 36 additions and 1 deletions
28
Cargo.lock
generated
28
Cargo.lock
generated
|
@ -380,6 +380,12 @@ dependencies = [
|
||||||
"memchr",
|
"memchr",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "const-cstr"
|
||||||
|
version = "0.3.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "ed3d0b5ff30645a68f35ece8cea4556ca14ef8a1651455f789a099a0513532a6"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "core-foundation"
|
name = "core-foundation"
|
||||||
version = "0.6.4"
|
version = "0.6.4"
|
||||||
|
@ -856,6 +862,15 @@ version = "1.0.7"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
|
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "fontconfig"
|
||||||
|
version = "0.5.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "a25320ad784a9578ada0b395dd7dcd2321109404bbb341ec27e64b01a1e49b47"
|
||||||
|
dependencies = [
|
||||||
|
"yeslogic-fontconfig-sys",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "foreign-types"
|
name = "foreign-types"
|
||||||
version = "0.3.2"
|
version = "0.3.2"
|
||||||
|
@ -1624,6 +1639,7 @@ dependencies = [
|
||||||
name = "mpd_info_screen"
|
name = "mpd_info_screen"
|
||||||
version = "0.2.20"
|
version = "0.2.20"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
"fontconfig",
|
||||||
"freetype",
|
"freetype",
|
||||||
"ggez",
|
"ggez",
|
||||||
"image 0.24.3",
|
"image 0.24.3",
|
||||||
|
@ -3070,6 +3086,18 @@ version = "0.8.4"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "d2d7d3948613f75c98fd9328cfdcc45acc4d360655289d0a7d4ec931392200a3"
|
checksum = "d2d7d3948613f75c98fd9328cfdcc45acc4d360655289d0a7d4ec931392200a3"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "yeslogic-fontconfig-sys"
|
||||||
|
version = "3.2.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "f2bbd69036d397ebbff671b1b8e4d918610c181c5a16073b96f984a38d08c386"
|
||||||
|
dependencies = [
|
||||||
|
"const-cstr",
|
||||||
|
"dlib 0.5.0",
|
||||||
|
"once_cell",
|
||||||
|
"pkg-config",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "zip"
|
name = "zip"
|
||||||
version = "0.5.13"
|
version = "0.5.13"
|
||||||
|
|
|
@ -13,6 +13,7 @@ structopt = "0.3"
|
||||||
image = "0.24"
|
image = "0.24"
|
||||||
ggez = "0.7"
|
ggez = "0.7"
|
||||||
freetype = { version = "0.7", optional = true }
|
freetype = { version = "0.7", optional = true }
|
||||||
|
fontconfig = { version = "0.5", optional = true }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
noto = ["dep:freetype"]
|
unicode_support = ["dep:freetype", "dep:fontconfig"]
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
mod debug_log;
|
mod debug_log;
|
||||||
mod display;
|
mod display;
|
||||||
mod mpd_handler;
|
mod mpd_handler;
|
||||||
|
#[cfg(feature = "unicode_support")]
|
||||||
|
mod unicode_support;
|
||||||
|
|
||||||
use ggez::conf::{WindowMode, WindowSetup};
|
use ggez::conf::{WindowMode, WindowSetup};
|
||||||
use ggez::event::winit_event::{ElementState, KeyboardInput, ModifiersState};
|
use ggez::event::winit_event::{ElementState, KeyboardInput, ModifiersState};
|
||||||
|
|
2
src/unicode_support.rs
Normal file
2
src/unicode_support.rs
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
mod fontconfig;
|
||||||
|
mod freetype;
|
1
src/unicode_support/fontconfig.rs
Normal file
1
src/unicode_support/fontconfig.rs
Normal file
|
@ -0,0 +1 @@
|
||||||
|
use fontconfig;
|
1
src/unicode_support/freetype.rs
Normal file
1
src/unicode_support/freetype.rs
Normal file
|
@ -0,0 +1 @@
|
||||||
|
use freetype;
|
Loading…
Reference in a new issue