mirror of
https://github.com/alacritty/alacritty
synced 2024-10-14 11:42:28 +00:00
Update crossfont to 0.3.0
This commit is contained in:
parent
edda4f7fd8
commit
8f4b752a98
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -386,9 +386,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "crossfont"
|
name = "crossfont"
|
||||||
version = "0.2.0"
|
version = "0.3.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "108946cf5228893bf470564410639b87a53f959d937f1c57bbc2a6603d98e812"
|
checksum = "dc52c750165ecb41cf02bfa8fd6731dc6796dddd87a3713fc9fbe9e08e71d48b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cocoa 0.24.0",
|
"cocoa 0.24.0",
|
||||||
"core-foundation 0.9.1",
|
"core-foundation 0.9.1",
|
||||||
|
|
|
@ -28,7 +28,7 @@ serde_json = "1"
|
||||||
glutin = { version = "0.26.0", default-features = false, features = ["serde"] }
|
glutin = { version = "0.26.0", default-features = false, features = ["serde"] }
|
||||||
notify = "4"
|
notify = "4"
|
||||||
parking_lot = "0.11.0"
|
parking_lot = "0.11.0"
|
||||||
crossfont = { version = "0.2.0", features = ["force_system_fontconfig"] }
|
crossfont = { version = "0.3.0", features = ["force_system_fontconfig"] }
|
||||||
copypasta = { version = "0.7.0", default-features = false }
|
copypasta = { version = "0.7.0", default-features = false }
|
||||||
libc = "0.2"
|
libc = "0.2"
|
||||||
unicode-width = "0.1"
|
unicode-width = "0.1"
|
||||||
|
|
|
@ -1336,11 +1336,11 @@ impl Atlas {
|
||||||
|
|
||||||
// Load data into OpenGL.
|
// Load data into OpenGL.
|
||||||
let (format, buffer) = match &glyph.buffer {
|
let (format, buffer) = match &glyph.buffer {
|
||||||
BitmapBuffer::RGB(buffer) => {
|
BitmapBuffer::Rgb(buffer) => {
|
||||||
multicolor = false;
|
multicolor = false;
|
||||||
(gl::RGB, buffer)
|
(gl::RGB, buffer)
|
||||||
},
|
},
|
||||||
BitmapBuffer::RGBA(buffer) => {
|
BitmapBuffer::Rgba(buffer) => {
|
||||||
multicolor = true;
|
multicolor = true;
|
||||||
(gl::RGBA, buffer)
|
(gl::RGBA, buffer)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue