| @@ -1,6 +1,5 @@ |
| 1 |
use anyhow::Result; |
1 |
use anyhow::Result; |
| 2 |
use std::ffi::CString; |
2 |
use std::ffi::CString; |
| 3 |
-use std::ptr; |
|
|
| 4 |
use x11::xft::{XftColor, XftDraw, XftDrawStringUtf8, XftFont, XftFontOpenName}; |
3 |
use x11::xft::{XftColor, XftDraw, XftDrawStringUtf8, XftFont, XftFontOpenName}; |
| 5 |
use x11::xlib::{Colormap, Display, Drawable, Visual}; |
4 |
use x11::xlib::{Colormap, Display, Drawable, Visual}; |
| 6 |
use x11::xrender::XRenderColor; |
5 |
use x11::xrender::XRenderColor; |
| @@ -47,7 +46,7 @@ impl Font { |
| 47 |
text.len() as i32, |
46 |
text.len() as i32, |
| 48 |
&mut extents, |
47 |
&mut extents, |
| 49 |
); |
48 |
); |
| 50 |
- extents.width as u16 |
49 |
+ extents.width |
| 51 |
} |
50 |
} |
| 52 |
} |
51 |
} |
| 53 |
} |
52 |
} |