linux: port from x11rb to xcb and hook up RawWindowHandle

This commit is contained in:
Dzmitry Malyshau 2024-01-28 21:50:58 -08:00
parent aed363d3c7
commit 7f8c64aa6c
6 changed files with 161 additions and 167 deletions

View file

@ -15,7 +15,7 @@ use font_kit::{
};
use parking_lot::RwLock;
use smallvec::SmallVec;
use std::sync::Arc;
use std::{borrow::Cow};
pub(crate) struct LinuxTextSystem(RwLock<LinuxTextSystemState>);
@ -54,7 +54,7 @@ impl Default for LinuxTextSystem {
#[allow(unused)]
impl PlatformTextSystem for LinuxTextSystem {
fn add_fonts(&self, fonts: &[Arc<Vec<u8>>]) -> Result<()> {
fn add_fonts(&self, fonts: Vec<Cow<'static, [u8]>>) -> Result<()> {
Ok(()) //TODO
}
fn all_font_names(&self) -> Vec<String> {