Update crossfont to 0.3.0

This commit is contained in:
Christian Duerr 2021-05-01 20:06:23 +00:00 committed by GitHub
parent edda4f7fd8
commit 8f4b752a98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

4
Cargo.lock generated
View File

@ -386,9 +386,9 @@ dependencies = [
[[package]]
name = "crossfont"
version = "0.2.0"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "108946cf5228893bf470564410639b87a53f959d937f1c57bbc2a6603d98e812"
checksum = "dc52c750165ecb41cf02bfa8fd6731dc6796dddd87a3713fc9fbe9e08e71d48b"
dependencies = [
"cocoa 0.24.0",
"core-foundation 0.9.1",

View File

@ -28,7 +28,7 @@ serde_json = "1"
glutin = { version = "0.26.0", default-features = false, features = ["serde"] }
notify = "4"
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 }
libc = "0.2"
unicode-width = "0.1"

View File

@ -1336,11 +1336,11 @@ impl Atlas {
// Load data into OpenGL.
let (format, buffer) = match &glyph.buffer {
BitmapBuffer::RGB(buffer) => {
BitmapBuffer::Rgb(buffer) => {
multicolor = false;
(gl::RGB, buffer)
},
BitmapBuffer::RGBA(buffer) => {
BitmapBuffer::Rgba(buffer) => {
multicolor = true;
(gl::RGBA, buffer)
},