Update wgpu and cosmic-text

This commit is contained in:
Héctor Ramón Jiménez 2023-04-08 04:47:05 +02:00
parent 6fae8bf6cb
commit c0431aedd3
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
8 changed files with 39 additions and 41 deletions

View file

@ -58,8 +58,12 @@ impl Pipeline {
target_size: Size<u32>,
) -> bool {
if self.renderers.len() <= self.prepare_layer {
self.renderers
.push(glyphon::TextRenderer::new(device, queue));
self.renderers.push(glyphon::TextRenderer::new(
&mut self.atlas,
device,
Default::default(),
None,
));
}
let font_system = self.font_system.get_mut();
@ -359,14 +363,7 @@ impl Cache {
glyphon::Attrs::new()
.family(to_family(key.font.family))
.weight(to_weight(key.font.weight))
.stretch(to_stretch(key.font.stretch))
.monospaced(
key.font.monospaced
|| matches!(
key.font.family,
font::Family::Monospace
),
),
.stretch(to_stretch(key.font.stretch)),
);
let _ = entry.insert(buffer);